Skip to content

[VIndex] Added benchmark for indexing 10k entries#129

Merged
mhutchinson merged 2 commits into
transparency-dev:mainfrom
mhutchinson:moreTests
May 19, 2026
Merged

[VIndex] Added benchmark for indexing 10k entries#129
mhutchinson merged 2 commits into
transparency-dev:mainfrom
mhutchinson:moreTests

Conversation

@mhutchinson
Copy link
Copy Markdown
Contributor

This gives a target when switching over the MPT implementation.

go test -bench=BenchmarkBuild -benchmem ./vindex

goos: linux
goarch: amd64
pkg: github.com/transparency-dev/incubator/vindex
cpu: AMD EPYC 7B12
BenchmarkBuild_InMemory-24             1        1004559670 ns/op        38192304 B/op     588597 allocs/op
BenchmarkBuild_OnDisk-24               1        4810209571 ns/op        2268211632 B/op  1541229 allocs/op
PASS
ok      github.com/transparency-dev/incubator/vindex    26.039s

This gives a target when switching over the MPT implementation.

```
go test -bench=BenchmarkBuild -benchmem ./vindex

goos: linux
goarch: amd64
pkg: github.com/transparency-dev/incubator/vindex
cpu: AMD EPYC 7B12
BenchmarkBuild_InMemory-24             1        1004559670 ns/op        38192304 B/op     588597 allocs/op
BenchmarkBuild_OnDisk-24               1        4810209571 ns/op        2268211632 B/op  1541229 allocs/op
PASS
ok      github.com/transparency-dev/incubator/vindex    26.039s
```
Comment thread vindex/map_test.go Outdated
Comment thread vindex/map_test.go Outdated
Comment thread vindex/map_test.go Outdated
Comment thread vindex/map_test.go Outdated
Comment thread vindex/map_test.go
Copy link
Copy Markdown
Contributor Author

@mhutchinson mhutchinson left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This required a fair amount of change, but it's working now.

Comment thread vindex/map_test.go Outdated
Comment thread vindex/map_test.go Outdated
Comment thread vindex/map_test.go
Comment thread vindex/map_test.go Outdated
Comment thread vindex/map_test.go Outdated
@mhutchinson mhutchinson merged commit 750bd20 into transparency-dev:main May 19, 2026
8 checks passed
@mhutchinson mhutchinson deleted the moreTests branch May 19, 2026 10:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants