Skip to content

Instantly share code, notes, and snippets.

@ajstarks
Last active June 18, 2016 09:08
Show Gist options
  • Save ajstarks/c937a1a80e76b4692cb52c1d57a4494d to your computer and use it in GitHub Desktop.
Save ajstarks/c937a1a80e76b4692cb52c1d57a4494d to your computer and use it in GitHub Desktop.
# Go 1.6.2 ---
chip@chip:~/go/test/bench/go1$ go test -bench=.
testing: warning: no tests to run
PASS
BenchmarkBinaryTree17 1 50504170115 ns/op
BenchmarkFannkuch11 1 43940678986 ns/op
BenchmarkFmtFprintfEmpty 2000000 639 ns/op
BenchmarkFmtFprintfString 500000 3664 ns/op
BenchmarkFmtFprintfInt 1000000 2245 ns/op
BenchmarkFmtFprintfIntInt 300000 3987 ns/op
BenchmarkFmtFprintfPrefixedInt 500000 3491 ns/op
BenchmarkFmtFprintfFloat 200000 7524 ns/op
BenchmarkFmtManyArgs 100000 16068 ns/op
BenchmarkGobDecode 10 149777466 ns/op 5.12 MB/s
BenchmarkGobEncode 10 115862490 ns/op 6.62 MB/s
BenchmarkGzip 1 5338351796 ns/op 3.63 MB/s
BenchmarkGunzip 2 702856883 ns/op 27.61 MB/s
BenchmarkHTTPClientServer 2000 938860 ns/op
BenchmarkJSONEncode 5 259592735 ns/op 7.48 MB/s
BenchmarkJSONDecode 1 1071005954 ns/op 1.81 MB/s
BenchmarkMandelbrot200 10 152110790 ns/op
BenchmarkGoParse 20 67758746 ns/op 0.85 MB/s
BenchmarkRegexpMatchEasy0_32 2000000 928 ns/op 34.45 MB/s
BenchmarkRegexpMatchEasy0_1K 200000 8192 ns/op 125.00 MB/s
BenchmarkRegexpMatchEasy1_32 2000000 988 ns/op 32.38 MB/s
BenchmarkRegexpMatchEasy1_1K 200000 10071 ns/op 101.67 MB/s
BenchmarkRegexpMatchMedium_32 1000000 1660 ns/op 0.60 MB/s
BenchmarkRegexpMatchMedium_1K 3000 481288 ns/op 2.13 MB/s
BenchmarkRegexpMatchHard_32 50000 27914 ns/op 1.15 MB/s
BenchmarkRegexpMatchHard_1K 2000 880093 ns/op 1.16 MB/s
BenchmarkRevcomp 10 104423147 ns/op 24.34 MB/s
BenchmarkTemplate 1 1455967799 ns/op 1.33 MB/s
BenchmarkTimeParse 200000 6553 ns/op
BenchmarkTimeFormat 200000 11490 ns/op
ok _/home/chip/go/test/bench/go1 162.957s
chip@chip:~/go/test/bench/go1$
# Go 1.7beta2
chip@chip:~/go/test/bench/go1$ go test -bench=.
testing: warning: no tests to run
BenchmarkBinaryTree17 1 47849092373 ns/op
BenchmarkFannkuch11 1 43824221976 ns/op
BenchmarkFmtFprintfEmpty 2000000 639 ns/op
BenchmarkFmtFprintfString 300000 3509 ns/op
BenchmarkFmtFprintfInt 1000000 2064 ns/op
BenchmarkFmtFprintfIntInt 500000 3387 ns/op
BenchmarkFmtFprintfPrefixedInt 500000 3341 ns/op
BenchmarkFmtFprintfFloat 200000 7130 ns/op
BenchmarkFmtManyArgs 100000 14509 ns/op
BenchmarkGobDecode 10 181157550 ns/op 4.24 MB/s
BenchmarkGobEncode 10 122211784 ns/op 6.28 MB/s
BenchmarkGzip 1 6640052946 ns/op 2.92 MB/s
BenchmarkGunzip 2 675566472 ns/op 28.72 MB/s
BenchmarkHTTPClientServer 2000 1089434 ns/op
BenchmarkJSONEncode 5 281547546 ns/op 6.89 MB/s
BenchmarkJSONDecode 1 1333158666 ns/op 1.46 MB/s
BenchmarkMandelbrot200 10 151824027 ns/op
BenchmarkGoParse 20 63018099 ns/op 0.92 MB/s
BenchmarkRegexpMatchEasy0_32 2000000 896 ns/op 35.68 MB/s
BenchmarkRegexpMatchEasy0_1K 200000 8147 ns/op 125.68 MB/s
BenchmarkRegexpMatchEasy1_32 2000000 968 ns/op 33.05 MB/s
BenchmarkRegexpMatchEasy1_1K 200000 10082 ns/op 101.56 MB/s
BenchmarkRegexpMatchMedium_32 1000000 1644 ns/op 0.61 MB/s
BenchmarkRegexpMatchMedium_1K 3000 482314 ns/op 2.12 MB/s
BenchmarkRegexpMatchHard_32 50000 28022 ns/op 1.14 MB/s
BenchmarkRegexpMatchHard_1K 2000 853757 ns/op 1.20 MB/s
BenchmarkRevcomp 20 104605914 ns/op 24.30 MB/s
BenchmarkTemplate 1 1741065870 ns/op 1.11 MB/s
BenchmarkTimeParse 200000 6169 ns/op
BenchmarkTimeFormat 100000 13167 ns/op
PASS
ok _/home/chip/go/test/bench/go1 162.091s
chip@chip:~/go/test/bench/go1$
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment