Skip to content

Instantly share code, notes, and snippets.

@ryanuber
Last active August 29, 2015 14:14
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ryanuber/7e80a0f86d1db0bc9bb7 to your computer and use it in GitHub Desktop.
Save ryanuber/7e80a0f86d1db0bc9bb7 to your computer and use it in GitHub Desktop.
Raft backend benchmarks
BenchmarkBoltStore_FirstIndex-5 1000000 1932 ns/op
BenchmarkBoltStore_LastIndex-5 1000000 1907 ns/op
BenchmarkBoltStore_GetLog-5 300000 5931 ns/op
BenchmarkBoltStore_StoreLog-5 5000 266819 ns/op
BenchmarkBoltStore_StoreLogs-5 5000 300801 ns/op
BenchmarkBoltStore_DeleteRange-5 5000 322467 ns/op
BenchmarkBoltStore_Set-5 10000 247162 ns/op
BenchmarkBoltStore_Get-5 1000000 2176 ns/op
BenchmarkBoltStore_SetUint64-5 10000 240333 ns/op
BenchmarkBoltStore_GetUint64-5 1000000 2209 ns/op
BenchmarkMDBStore_FirstIndex-5 300000 3564 ns/op
BenchmarkMDBStore_LastIndex-5 500000 3553 ns/op
BenchmarkMDBStore_GetLog-5 200000 7394 ns/op
BenchmarkMDBStore_StoreLog-5 10000 187133 ns/op
BenchmarkMDBStore_StoreLogs-5 10000 208789 ns/op
BenchmarkMDBStore_DeleteRange-5 10000 216274 ns/op
BenchmarkMDBStore_Set-5 10000 150921 ns/op
BenchmarkMDBStore_Get-5 500000 2902 ns/op
BenchmarkMDBStore_SetUint64-5 10000 170767 ns/op
BenchmarkMDBStore_GetUint64-5 500000 2896 ns/op
@c4milo
Copy link

c4milo commented Feb 1, 2015

What version of Go gave you this results?

@ryanuber
Copy link
Author

ryanuber commented Feb 4, 2015

@c4milo go1.4.1 darwin/amd64

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment