Skip to content

Instantly share code, notes, and snippets.

@robfig
Created August 27, 2013 15:45
Show Gist options
  • Save robfig/6355285 to your computer and use it in GitHub Desktop.
Save robfig/6355285 to your computer and use it in GitHub Desktop.
Autobench results on a Mac Pro - OSX 10.8.2 - 2.8 GHz 4-core Xeon - 16 GB 1066 MHz DDR3
/Users/robfig/autobench/work/go.tip/bin/go test -bench=. bench/go1 > /Users/robfig/autobench/work/go1-tip.txt
testing: warning: no tests to run
/Users/robfig/autobench/work/go.11/misc/benchcmp /Users/robfig/autobench/work/go1-11.txt /Users/robfig/autobench/work/go1-tip.txt
benchmark old ns/op new ns/op delta
BenchmarkBinaryTree17 6685798102 5448294853 -18.51%
BenchmarkFannkuch11 4472978544 4454452974 -0.41%
BenchmarkFmtFprintfEmpty 108 154 +42.59%
BenchmarkFmtFprintfString 376 344 -8.51%
BenchmarkFmtFprintfInt 245 283 +15.51%
BenchmarkFmtFprintfIntInt 371 468 +26.15%
BenchmarkFmtFprintfPrefixedInt 429 426 -0.70%
BenchmarkFmtFprintfFloat 607 617 +1.65%
BenchmarkFmtManyArgs 1568 1765 +12.56%
BenchmarkGobDecode 14357464 12615353 -12.13%
BenchmarkGobEncode 15795623 18748485 +18.69%
BenchmarkGzip 621587691 611588454 -1.61%
BenchmarkGunzip 148372379 130737350 -11.89%
BenchmarkHTTPClientServer 90388 89664 -0.80%
BenchmarkJSONEncode 55400690 37208020 -32.84%
BenchmarkJSONDecode 126986098 154611599 +21.75%
BenchmarkMandelbrot200 5212315 5249040 +0.70%
BenchmarkGoParse 7624521 7616286 -0.11%
BenchmarkRegexpMatchEasy0_32 140 171 +22.14%
BenchmarkRegexpMatchEasy0_1K 402 427 +6.22%
BenchmarkRegexpMatchEasy1_32 120 150 +25.00%
BenchmarkRegexpMatchEasy1_1K 1221 1428 +16.95%
BenchmarkRegexpMatchMedium_32 251 311 +23.90%
BenchmarkRegexpMatchMedium_1K 100663 117136 +16.36%
BenchmarkRegexpMatchHard_32 4691 5810 +23.85%
BenchmarkRegexpMatchHard_1K 147206 176388 +19.82%
BenchmarkRevcomp 1104935852 1017756000 -7.89%
BenchmarkTemplate 161948622 188930368 +16.66%
BenchmarkTimeParse 648 611 -5.71%
BenchmarkTimeFormat 697 664 -4.73%
benchmark old MB/s new MB/s speedup
BenchmarkGobDecode 53.46 60.84 1.14x
BenchmarkGobEncode 48.59 40.94 0.84x
BenchmarkGzip 31.22 31.73 1.02x
BenchmarkGunzip 130.78 148.43 1.13x
BenchmarkJSONEncode 35.03 52.15 1.49x
BenchmarkJSONDecode 15.28 12.55 0.82x
BenchmarkGoParse 7.60 7.60 1.00x
BenchmarkRegexpMatchEasy0_32 227.45 186.09 0.82x
BenchmarkRegexpMatchEasy0_1K 2546.58 2394.13 0.94x
BenchmarkRegexpMatchEasy1_32 264.83 212.77 0.80x
BenchmarkRegexpMatchEasy1_1K 837.99 717.07 0.86x
BenchmarkRegexpMatchMedium_32 3.98 3.21 0.81x
BenchmarkRegexpMatchMedium_1K 10.17 8.74 0.86x
BenchmarkRegexpMatchHard_32 6.82 5.51 0.81x
BenchmarkRegexpMatchHard_1K 6.96 5.81 0.83x
BenchmarkRevcomp 230.03 249.73 1.09x
BenchmarkTemplate 11.98 10.27 0.86x
/Users/robfig/autobench/work/go.11/bin/go test -test.run=XXX -test.bench=. bench/runtime > /Users/robfig/autobench/work/runtime-11.txt
/Users/robfig/autobench/work/go.tip/bin/go test -test.run=XXX -test.bench=. bench/runtime > /Users/robfig/autobench/work/runtime-tip.txt
/Users/robfig/autobench/work/go.11/misc/benchcmp /Users/robfig/autobench/work/runtime-11.txt /Users/robfig/autobench/work/runtime-tip.txt
benchmark old ns/op new ns/op delta
BenchmarkAppend 144 112 -22.22%
BenchmarkAppend1Byte 237 274 +15.61%
BenchmarkAppend4Bytes 349 270 -22.64%
BenchmarkAppend8Bytes 454 276 -39.21%
BenchmarkAppend16Bytes 591 345 -41.62%
BenchmarkAppend32Bytes 593 280 -52.78%
BenchmarkAppendSpecialCase 45 40 -12.28%
BenchmarkSelectUncontended 294 296 +0.68%
BenchmarkSelectContended 294 294 +0.00%
BenchmarkSelectNonblock 128 134 +4.69%
BenchmarkChanUncontended 74 76 +2.68%
BenchmarkChanContended 75 76 +1.06%
BenchmarkChanSync 172 170 -1.16%
BenchmarkChanProdCons0 188 185 -1.60%
BenchmarkChanProdCons10 100 102 +2.00%
BenchmarkChanProdCons100 79 78 -1.38%
BenchmarkChanProdConsWork0 870 862 -0.92%
BenchmarkChanProdConsWork10 785 788 +0.38%
BenchmarkChanProdConsWork100 759 761 +0.26%
BenchmarkChanCreation 216 213 -1.39%
BenchmarkChanSem 73 75 +2.74%
BenchmarkCallClosure 2 2 +2.11%
BenchmarkCallClosure1 4 4 -1.69%
BenchmarkCallClosure2 58 50 -14.31%
BenchmarkCallClosure3 60 53 -11.42%
BenchmarkCallClosure4 62 56 -9.94%
BenchmarkComplex128DivNormal 31 31 +2.25%
BenchmarkComplex128DivNisNaN 16 16 +2.45%
BenchmarkComplex128DivDisNaN 16 17 +3.57%
BenchmarkComplex128DivNisInf 13 13 +0.74%
BenchmarkComplex128DivDisInf 15 14 -9.09%
BenchmarkConvT2ESmall 11 11 +0.00%
BenchmarkConvT2EUintptr 0 1 +39.47%
BenchmarkConvT2ELarge 74 68 -8.34%
BenchmarkConvT2ISmall 19 13 -29.23%
BenchmarkConvT2IUintptr 1 2 +67.61%
BenchmarkConvT2ILarge 76 71 -5.66%
BenchmarkConvI2E 5 5 -1.69%
BenchmarkConvI2I 16 17 +5.33%
BenchmarkAssertE2T 12 12 +4.10%
BenchmarkAssertE2TLarge 13 14 +2.16%
BenchmarkAssertE2I 21 20 -3.32%
BenchmarkAssertI2T 12 12 +2.40%
BenchmarkAssertI2I 20 20 -1.96%
BenchmarkAssertI2E 4 4 +2.04%
BenchmarkAssertE2E 0 1 +49.30%
BenchmarkMalloc8 56 49 -12.66%
BenchmarkMalloc16 61 56 -8.48%
BenchmarkMallocTypeInfo8 84 68 -19.72%
BenchmarkMallocTypeInfo16 86 75 -12.37%
BenchmarkHashStringSpeed 56 52 -7.28%
BenchmarkHashInt32Speed 33 34 +0.29%
BenchmarkHashInt64Speed 44 37 -15.77%
BenchmarkHashStringArraySpeed 129 117 -9.30%
BenchmarkMegMap 23 27 +18.03%
BenchmarkMegOneMap 31 19 -39.18%
BenchmarkMegEqMap 92099 93285 +1.29%
BenchmarkMegEmptyMap 4 4 +7.51%
BenchmarkSmallStrMap 26 24 -5.75%
BenchmarkMapStringKeysEight_16 27 28 +3.24%
BenchmarkMapStringKeysEight_32 24 24 +0.00%
BenchmarkMapStringKeysEight_64 24 24 +1.66%
BenchmarkMapStringKeysEight_1M 24 24 +0.41%
BenchmarkIntMap 17 22 +24.02%
BenchmarkRepeatedLookupStrMapKey32 108 73 -32.31%
BenchmarkRepeatedLookupStrMapKey1M 2678430 1475042 -44.93%
BenchmarkNewEmptyMap 145 137 -5.52%
BenchmarkMemmove32 25 10 -59.20%
BenchmarkMemmove4K 203 201 -0.99%
BenchmarkMemmove64K 5648 5702 +0.96%
BenchmarkMemmove4M 1379110 1341181 -2.75%
BenchmarkMemmove64M 22714496 22551088 -0.72%
BenchmarkFinalizer 195 197 +1.03%
BenchmarkFinalizerRun 835 832 -0.36%
BenchmarkStackGrowth 817 963 +17.87%
BenchmarkStackGrowthDeep 124798 132945 +6.53%
BenchmarkCreateGoroutines 137 136 -0.73%
BenchmarkCreateGoroutinesParallel 134 138 +2.99%
BenchmarkMatmult 11 12 +8.77%
BenchmarkIfaceCmp100 216 225 +4.17%
BenchmarkIfaceCmpNil100 182 204 +12.09%
BenchmarkDefer 103 81 -20.49%
BenchmarkDefer10 94 72 -23.65%
BenchmarkDeferMany 156 140 -10.26%
BenchmarkCompareStringEqual 11 13 +18.58%
BenchmarkCompareStringIdentical 6 6 +0.91%
BenchmarkCompareStringSameLength 10 11 +15.84%
BenchmarkCompareStringDifferentLength 2 2 +2.47%
BenchmarkCompareStringBigUnaligned 104838 98489 -6.06%
BenchmarkCompareStringBig 95234 92930 -2.42%
benchmark old MB/s new MB/s speedup
BenchmarkMemmove32 1277.90 3132.67 2.45x
BenchmarkMemmove4K 20165.18 20332.19 1.01x
BenchmarkMemmove64K 11602.07 11492.30 0.99x
BenchmarkMemmove4M 3041.31 3127.32 1.03x
BenchmarkMemmove64M 2954.45 2975.86 1.01x
BenchmarkCompareStringBigUnaligned 10001.95 10646.72 1.06x
BenchmarkCompareStringBig 11010.58 11283.57 1.02x
/Users/robfig/autobench/work/go.11/bin/go test -test.run=XXX -test.bench=. bench/http > /Users/robfig/autobench/work/http-11.txt
testing: warning: no tests to run
/Users/robfig/autobench/work/go.tip/bin/go test -test.run=XXX -test.bench=. bench/http > /Users/robfig/autobench/work/http-tip.txt
testing: warning: no tests to run
/Users/robfig/autobench/work/go.11/misc/benchcmp /Users/robfig/autobench/work/http-11.txt /Users/robfig/autobench/work/http-tip.txt
benchmark old ns/op new ns/op delta
BenchmarkHeaderWriteSubset 1587 1402 -11.66%
BenchmarkReadRequestChrome 9058 8400 -7.26%
BenchmarkReadRequestCurl 4494 4506 +0.27%
BenchmarkReadRequestApachebench 4435 4435 +0.00%
BenchmarkReadRequestSiege 6326 5956 -5.85%
BenchmarkReadRequestWrk 2913 3158 +8.41%
BenchmarkClientServer 93165 94306 +1.22%
BenchmarkClientServerParallel4 79971 77226 -3.43%
BenchmarkClientServerParallel64 76200 74113 -2.74%
BenchmarkServer 147449 143138 -2.92%
BenchmarkServerFakeConnNoKeepAlive 20217 16150 -20.12%
BenchmarkServerFakeConnWithKeepAlive 16470 12696 -22.91%
BenchmarkServerFakeConnWithKeepAliveLite 10351 7813 -24.52%
BenchmarkServerHandlerTypeLen 13118 10258 -21.80%
BenchmarkServerHandlerNoLen 12205 9005 -26.22%
BenchmarkServerHandlerNoType 12781 9627 -24.68%
BenchmarkServerHandlerNoHeader 9902 7158 -27.71%
benchmark old MB/s new MB/s speedup
BenchmarkReadRequestChrome 67.45 72.74 1.08x
BenchmarkReadRequestCurl 17.36 17.31 1.00x
BenchmarkReadRequestApachebench 18.49 18.49 1.00x
BenchmarkReadRequestSiege 23.87 25.35 1.06x
BenchmarkReadRequestWrk 13.73 12.66 0.92x
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment