Skip to content

Instantly share code, notes, and snippets.

@mdempsky
Created November 24, 2015 19:25
Show Gist options
  • Save mdempsky/181b45d0bb41b3c00300 to your computer and use it in GitHub Desktop.
Save mdempsky/181b45d0bb41b3c00300 to your computer and use it in GitHub Desktop.
golang/go#13346 benchstats
name \ time/op go1.before.txt go1.after2.txt go1.after3.txt
BinaryTree17-32 4.28s ±13% 4.32s ±12% 4.33s ±11%
Fannkuch11-32 2.80s ± 9% 2.82s ±11% 2.80s ±10%
FmtFprintfEmpty-32 57.6ns ±16% 59.2ns ±20% 58.0ns ±17%
FmtFprintfString-32 194ns ±13% 192ns ±16% 196ns ±15%
FmtFprintfInt-32 183ns ±12% 182ns ±16% 201ns ±12%
FmtFprintfIntInt-32 305ns ±18% 292ns ±13% 325ns ±13%
FmtFprintfPrefixedInt-32 273ns ±17% 259ns ±14% 284ns ±17%
FmtFprintfFloat-32 366ns ±18% 379ns ±15% 402ns ±17%
FmtManyArgs-32 1.21µs ±19% 1.18µs ±18% 1.20µs ±18%
GobDecode-32 11.1ms ±13% 10.9ms ±17% 11.0ms ±16%
GobEncode-32 8.61ms ±16% 8.66ms ±17% 8.60ms ±16%
Gzip-32 363ms ±18% 365ms ±21% 369ms ±15%
Gunzip-32 48.4ms ±21% 48.3ms ±20% 47.8ms ±21%
HTTPClientServer-32 169µs ±24% 168µs ±27% 175µs ±19%
JSONEncode-32 22.4ms ±12% 22.4ms ±12% 23.0ms ±11%
JSONDecode-32 67.9ms ±17% 66.2ms ±19% 65.8ms ±18%
Mandelbrot200-32 4.38ms ±19% 4.49ms ±16% 4.42ms ±17%
GoParse-32 4.37ms ±15% 4.28ms ±16% 4.34ms ±15%
RegexpMatchEasy0_32-32 116ns ±17% 115ns ±19% 116ns ±17%
RegexpMatchEasy0_1K-32 394ns ±18% 378ns ±16% 386ns ±15%
RegexpMatchEasy1_32-32 95.1ns ±15% 95.2ns ±11% 95.5ns ±14%
RegexpMatchEasy1_1K-32 589ns ±18% 560ns ±18% 564ns ±16%
RegexpMatchMedium_32-32 154ns ±18% 153ns ±18% 152ns ±20%
RegexpMatchMedium_1K-32 44.4µs ±17% 44.0µs ±14% 44.2µs ±18%
RegexpMatchHard_32-32 2.43µs ±22% 2.42µs ±18% 2.45µs ±18%
RegexpMatchHard_1K-32 72.6µs ±15% 71.1µs ±15% 72.5µs ±17%
Revcomp-32 741ms ±15% 741ms ±19% 745ms ±20%
Template-32 81.0ms ±16% 80.0ms ±16% 78.6ms ± 9%
TimeParse-32 393ns ±18% 389ns ±14% 393ns ±15%
TimeFormat-32 400ns ±16% 395ns ±12% 409ns ±13%
name \ speed go1.before.txt go1.after2.txt go1.after3.txt
BinaryTree17-32
Fannkuch11-32
FmtFprintfEmpty-32
FmtFprintfString-32
FmtFprintfInt-32
FmtFprintfIntInt-32
FmtFprintfPrefixedInt-32
FmtFprintfFloat-32
FmtManyArgs-32
GobDecode-32 69.3MB/s ±13% 70.5MB/s ±15% 70.1MB/s ±14%
GobEncode-32 89.6MB/s ±16% 89.2MB/s ±19% 89.7MB/s ±18%
Gzip-32 53.0MB/s ±18% 53.1MB/s ±20% 52.5MB/s ±18%
Gunzip-32 403MB/s ±18% 403MB/s ±19% 409MB/s ±18%
HTTPClientServer-32
JSONEncode-32 86.7MB/s ±12% 86.7MB/s ±13% 84.7MB/s ±12%
JSONDecode-32 28.6MB/s ±18% 29.4MB/s ±18% 29.6MB/s ±18%
Mandelbrot200-32
GoParse-32 13.3MB/s ±16% 13.6MB/s ±17% 13.4MB/s ±16%
RegexpMatchEasy0_32-32 275MB/s ±15% 279MB/s ±16% 276MB/s ±15%
RegexpMatchEasy0_1K-32 2.61GB/s ±16% 2.71GB/s ±17% 2.66GB/s ±13%
RegexpMatchEasy1_32-32 335MB/s ±17% 336MB/s ±18% 335MB/s ±14%
RegexpMatchEasy1_1K-32 1.75GB/s ±16% 1.83GB/s ±18% 1.82GB/s ±17%
RegexpMatchMedium_32-32 6.46MB/s ±18% 6.52MB/s ±16% 6.57MB/s ±17%
RegexpMatchMedium_1K-32 23.0MB/s ±17% 23.2MB/s ±18% 23.2MB/s ±18%
RegexpMatchHard_32-32 13.2MB/s ±20% 13.3MB/s ±16% 13.1MB/s ±16%
RegexpMatchHard_1K-32 14.1MB/s ±18% 14.4MB/s ±14% 14.1MB/s ±18%
Revcomp-32 345MB/s ±17% 344MB/s ±18% 343MB/s ±18%
Template-32 24.0MB/s ±17% 24.3MB/s ±16% 24.7MB/s ±15%
TimeParse-32
TimeFormat-32
name \ time/op regexp.before.txt regexp.after2.txt regexp.after3.txt
Literal-32 148ns ±16% 148ns ±16% 150ns ±16%
NotLiteral-32 2.36µs ±16% 2.37µs ±14% 2.40µs ±19%
MatchClass-32 3.62µs ±16% 3.65µs ±16% 3.59µs ±14%
MatchClass_InRange-32 3.28µs ±18% 3.31µs ±19% 3.20µs ±19%
ReplaceAll-32 2.91µs ±10% 2.93µs ± 9% 2.91µs ±14%
AnchoredLiteralShortNonMatch-32 135ns ±10% 136ns ±12% 136ns ± 9%
AnchoredLiteralLongNonMatch-32 140ns ±13% 142ns ±15% 140ns ±12%
AnchoredShortMatch-32 206ns ±12% 204ns ±14% 208ns ±19%
AnchoredLongMatch-32 394ns ±15% 405ns ±16% 401ns ±13%
OnePassShortA-32 793ns ±16% 795ns ±12% 781ns ±16%
NotOnePassShortA-32 978ns ±17% 967ns ±18% 934ns ±17%
OnePassShortB-32 622ns ±12% 631ns ±16% 616ns ±14%
NotOnePassShortB-32 686ns ±18% 678ns ±14% 669ns ±14%
OnePassLongPrefix-32 139ns ±12% 139ns ±15% 138ns ±17%
OnePassLongNotPrefix-32 505ns ±13% 507ns ±16% 503ns ±13%
MatchEasy0_32-32 113ns ±20% 112ns ±18% 110ns ±12%
MatchEasy0_1K-32 693ns ±15% 705ns ±12% 717ns ±14%
MatchEasy0_32K-32 12.9µs ±21% 12.8µs ±19% 12.6µs ±16%
MatchEasy0_1M-32 464µs ±17% 467µs ±14% 464µs ±13%
MatchEasy0_32M-32 15.6ms ±18% 15.8ms ±16% 15.6ms ±16%
MatchEasy1_32-32 93.5ns ±13% 94.6ns ±15% 92.4ns ±14%
MatchEasy1_1K-32 1.55µs ±12% 1.54µs ±12% 1.57µs ±12%
MatchEasy1_32K-32 55.0µs ±12% 55.0µs ±11% 54.2µs ±13%
MatchEasy1_1M-32 1.91ms ±13% 1.92ms ±10% 1.88ms ±10%
MatchEasy1_32M-32 62.2ms ±13% 62.3ms ±14% 61.9ms ±16%
MatchMedium_32-32 1.49µs ±13% 1.42µs ±11% 1.44µs ±12%
MatchMedium_1K-32 44.2µs ±14% 43.7µs ±14% 43.6µs ±14%
MatchMedium_32K-32 1.84ms ±14% 1.87ms ±13% 1.84ms ±10%
MatchMedium_1M-32 59.0ms ±17% 60.4ms ±17% 58.8ms ±13%
MatchMedium_32M-32 1.87s ±10% 1.92s ±11% 1.88s ± 9%
MatchHard_32-32 2.37µs ±12% 2.31µs ±10% 2.32µs ±16%
MatchHard_1K-32 70.9µs ±12% 71.0µs ±14% 70.2µs ±12%
MatchHard_32K-32 3.00ms ±13% 3.04ms ±12% 3.00ms ±12%
MatchHard_1M-32 97.9ms ±15% 100.4ms ±18% 97.3ms ±14%
MatchHard_32M-32 3.09s ±11% 3.14s ± 9% 3.10s ±10%
name \ speed regexp.before.txt regexp.after2.txt regexp.after3.txt
Literal-32
NotLiteral-32
MatchClass-32
MatchClass_InRange-32
ReplaceAll-32
AnchoredLiteralShortNonMatch-32
AnchoredLiteralLongNonMatch-32
AnchoredShortMatch-32
AnchoredLongMatch-32
OnePassShortA-32
NotOnePassShortA-32
OnePassShortB-32
NotOnePassShortB-32
OnePassLongPrefix-32
OnePassLongNotPrefix-32
MatchEasy0_32-32 284MB/s ±17% 283MB/s ±17% 289MB/s ±13%
MatchEasy0_1K-32 1.48GB/s ±16% 1.46GB/s ±11% 1.43GB/s ±12%
MatchEasy0_32K-32 2.55GB/s ±17% 2.56GB/s ±16% 2.60GB/s ±17%
MatchEasy0_1M-32 2.26GB/s ±15% 2.25GB/s ±14% 2.26GB/s ±11%
MatchEasy0_32M-32 2.13GB/s ±18% 2.14GB/s ±14% 2.16GB/s ±16%
MatchEasy1_32-32 343MB/s ±13% 338MB/s ±16% 347MB/s ±13%
MatchEasy1_1K-32 662MB/s ±11% 664MB/s ±13% 649MB/s ±13%
MatchEasy1_32K-32 597MB/s ±11% 596MB/s ±13% 604MB/s ±16%
MatchEasy1_1M-32 550MB/s ±11% 546MB/s ± 9% 558MB/s ±13%
MatchEasy1_32M-32 540MB/s ±12% 540MB/s ±12% 542MB/s ±15%
MatchMedium_32-32 21.5MB/s ±13% 22.5MB/s ±11% 22.3MB/s ±11%
MatchMedium_1K-32 23.2MB/s ±17% 23.5MB/s ±12% 23.5MB/s ±14%
MatchMedium_32K-32 17.8MB/s ±13% 17.6MB/s ±12% 17.8MB/s ±14%
MatchMedium_1M-32 17.8MB/s ±17% 17.3MB/s ±17% 17.9MB/s ±12%
MatchMedium_32M-32 17.9MB/s ±11% 17.5MB/s ±10% 17.9MB/s ± 9%
MatchHard_32-32 13.5MB/s ±13% 13.8MB/s ±11% 13.8MB/s ±14%
MatchHard_1K-32 14.5MB/s ±11% 14.5MB/s ±12% 14.6MB/s ±16%
MatchHard_32K-32 10.9MB/s ±13% 10.8MB/s ±11% 10.9MB/s ±12%
MatchHard_1M-32 10.7MB/s ±13% 10.5MB/s ±16% 10.8MB/s ±15%
MatchHard_32M-32 10.9MB/s ±12% 10.7MB/s ±11% 10.8MB/s ±10%
name \ time/op sort.before.txt sort.after2.txt sort.after3.txt
SearchWrappers-32 154ns ±16% 158ns ±10% 149ns ±14%
SortString1K-32 305µs ± 4% 303µs ± 6% 304µs ± 4%
StableString1K-32 457µs ± 3% 455µs ± 3% 454µs ± 3%
SortInt1K-32 132µs ± 2% 131µs ± 2% 131µs ± 2%
StableInt1K-32 134µs ± 3% 132µs ± 3% 132µs ± 2%
SortInt64K-32 13.1ms ± 4% 13.0ms ± 4% 13.1ms ± 4%
StableInt64K-32 11.4ms ±16% 11.3ms ±15% 11.3ms ±17%
Sort1e2-32 67.9µs ± 3% 68.2µs ± 2% 67.0µs ± 3%
Stable1e2-32 137µs ± 3% 136µs ± 2% 135µs ± 2%
Sort1e4-32 13.5ms ±11% 13.4ms ±13% 13.3ms ±11%
Stable1e4-32 35.6ms ±17% 35.1ms ±14% 35.3ms ±17%
Sort1e6-32 1.83s ±13% 1.87s ±19% 1.80s ±12%
Stable1e6-32 7.26s ± 8% 7.17s ± 9% 7.10s ± 7%
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment