Skip to content

Instantly share code, notes, and snippets.

@janisz
Last active July 7, 2016 22:21
Show Gist options
  • Save janisz/55c20d049b4033dd15d5c08a47288392 to your computer and use it in GitHub Desktop.
Save janisz/55c20d049b4033dd15d5c08a47288392 to your computer and use it in GitHub Desktop.
go version go1.6.2 linux/amd64 vs. go version go1.7beta2 linux/amd64
benchmark go1.6.2 ns/op go1.7beta2 ns/op delta
BenchmarkWriteToCacheWith1Shard-4 3106 2714 -12.62%
BenchmarkWriteToLimitedCacheWithSmallInitSizeAnd1Shard-4 3102 1885 -39.23%
BenchmarkWriteToUnlimitedCacheWithSmallInitSizeAnd1Shard-4 10277 5652 -45.00%
BenchmarkWriteToCacheWith512Shards-4 1190 976 -17.98%
BenchmarkWriteToCacheWith1024Shards-4 1320 1006 -23.79%
BenchmarkWriteToCacheWith8192Shards-4 1290 1053 -18.37%
BenchmarkWriteToCacheWith1024ShardsAndSmallShardInitSize-4 1359 1090 -19.79%
BenchmarkReadFromCacheWith1024Shards-4 693 606 -12.55%
BenchmarkReadFromCacheWith8192Shards-4 714 606 -15.13%
BenchmarkFnvHashSum64-4 27.1 31.8 +17.34%
BenchmarkFnvHashStdLibSum64-4 168 132 -21.43%
BenchmarkMapSet-4 2267 2201 -2.91%
BenchmarkFreeCacheSet-4 1844 1702 -7.70%
BenchmarkBigCacheSet-4 2805 2019 -28.02%
BenchmarkMapGet-4 973 790 -18.81%
BenchmarkFreeCacheGet-4 2044 1699 -16.88%
BenchmarkBigCacheGet-4 1671 1421 -14.96%
BenchmarkBigCacheSetParallel-4 857 768 -10.39%
BenchmarkFreeCacheSetParallel-4 714 692 -3.08%
BenchmarkBigCacheGetParallel-4 312 313 +0.32%
BenchmarkFreeCacheGetParallel-4 582 479 -17.70%
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment