Descriptionruntime: experiment for running hash map operations on the g0 stack.
benchmark old ns/op new ns/op delta
BenchmarkMegMap 19 22 +13.40%
BenchmarkMegOneMap 11 16 +37.82%
BenchmarkMegEqMap 60892 61287 +0.65%
BenchmarkMegEmptyMap 3 8 +153.77%
BenchmarkSmallStrMap 18 22 +20.00%
BenchmarkMapStringKeysEight_16 21 22 +5.19%
BenchmarkMapStringKeysEight_32 18 23 +27.32%
BenchmarkMapStringKeysEight_64 18 23 +27.32%
BenchmarkMapStringKeysEight_1M 18 23 +26.63%
BenchmarkIntMap 16 18 +14.63%
BenchmarkRepeatedLookupStrMapKey32 33 41 +23.58%
BenchmarkRepeatedLookupStrMapKey1M 277729 277790 +0.02%
BenchmarkSameLengthMap 4 10 +149.43%
looks like an overhead of about 3-6ns per call
Patch Set 1 #Patch Set 2 : diff -r e6794866ebeb https://khr%40golang.org@code.google.com/p/go/ #
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||