Skip to content

Instantly share code, notes, and snippets.

@hnakamur hnakamur/memo.md
Last active May 27, 2019

Embed
What would you like to do?
badger, goleveldb, boltdb benchmark
hnakamur@express:~/go/src/github.com/zchee/go-benchmarks/db$ go test -count=10 -run='^$' -bench=. -benchmem
goos: linux
goarch: amd64
pkg: github.com/zchee/go-benchmarks/db
BenchmarkGetBadger-2             5000000               399 ns/op          22.50 MB/s          40 B/op          2 allocs/op
BenchmarkGetBadger-2             5000000               390 ns/op          23.04 MB/s          40 B/op          2 allocs/op
BenchmarkGetBadger-2             5000000               390 ns/op          23.03 MB/s          40 B/op          2 allocs/op
BenchmarkGetBadger-2             5000000               391 ns/op          22.97 MB/s          40 B/op          2 allocs/op
BenchmarkGetBadger-2             5000000               391 ns/op          22.96 MB/s          40 B/op          2 allocs/op
BenchmarkGetBadger-2             5000000               394 ns/op          22.83 MB/s          40 B/op          2 allocs/op
BenchmarkGetBadger-2             5000000               393 ns/op          22.88 MB/s          40 B/op          2 allocs/op
BenchmarkGetBadger-2             3000000               393 ns/op          22.89 MB/s          40 B/op          2 allocs/op
BenchmarkGetBadger-2             5000000               390 ns/op          23.02 MB/s          40 B/op          2 allocs/op
BenchmarkGetBadger-2             5000000               391 ns/op          23.02 MB/s          40 B/op          2 allocs/op
BenchmarkGetLevelDB-2            2000000               718 ns/op          12.52 MB/s         112 B/op          4 allocs/op
BenchmarkGetLevelDB-2            2000000               720 ns/op          12.50 MB/s         112 B/op          4 allocs/op
BenchmarkGetLevelDB-2            2000000               721 ns/op          12.47 MB/s         112 B/op          4 allocs/op
BenchmarkGetLevelDB-2            2000000               721 ns/op          12.47 MB/s         112 B/op          4 allocs/op
BenchmarkGetLevelDB-2            2000000               722 ns/op          12.45 MB/s         112 B/op          4 allocs/op
BenchmarkGetLevelDB-2            2000000               717 ns/op          12.55 MB/s         112 B/op          4 allocs/op
BenchmarkGetLevelDB-2            2000000               727 ns/op          12.38 MB/s         112 B/op          4 allocs/op
BenchmarkGetLevelDB-2            2000000               718 ns/op          12.52 MB/s         112 B/op          4 allocs/op
BenchmarkGetLevelDB-2            2000000               719 ns/op          12.51 MB/s         112 B/op          4 allocs/op
BenchmarkGetLevelDB-2            2000000               716 ns/op          12.56 MB/s         112 B/op          4 allocs/op
BenchmarkGetBolt-2               2000000               925 ns/op           9.73 MB/s         440 B/op          7 allocs/op
BenchmarkGetBolt-2               2000000               932 ns/op           9.65 MB/s         440 B/op          7 allocs/op
BenchmarkGetBolt-2               2000000               930 ns/op           9.68 MB/s         440 B/op          7 allocs/op
BenchmarkGetBolt-2               2000000               928 ns/op           9.69 MB/s         440 B/op          7 allocs/op
BenchmarkGetBolt-2               2000000               917 ns/op           9.81 MB/s         440 B/op          7 allocs/op
BenchmarkGetBolt-2               2000000               934 ns/op           9.63 MB/s         440 B/op          7 allocs/op
BenchmarkGetBolt-2               2000000               929 ns/op           9.68 MB/s         440 B/op          7 allocs/op
BenchmarkGetBolt-2               2000000               921 ns/op           9.77 MB/s         440 B/op          7 allocs/op
BenchmarkGetBolt-2               2000000               916 ns/op           9.82 MB/s         440 B/op          7 allocs/op
BenchmarkGetBolt-2               2000000               921 ns/op           9.77 MB/s         440 B/op          7 allocs/op
PASS
ok      github.com/zchee/go-benchmarks/db       99.806s

hnakamur@express:~/go/src/github.com/zchee/go-benchmarks/db$ go version
go version go1.9beta2 linux/amd64
@TennyZhuang

This comment has been minimized.

Copy link

commented Sep 28, 2018

Can you paste your benchmark code?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.