Skip to content

Instantly share code, notes, and snippets.

@Whateverable
Created March 31, 2018 11:59
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Whateverable/ee9bc2c580f12f675d673514550232a5 to your computer and use it in GitHub Desktop.
Save Whateverable/ee9bc2c580f12f675d673514550232a5 to your computer and use it in GitHub Desktop.
benchable6
compare HEAD say (0..1).roll(100_000).sum ||| say +(0..1).roll(100_000)
¦HEAD: «Benchmark:
Timing 10 iterations of 0, 1...
50040
50020
50155
49989
49913
49884
50238
49915
50014
50166
0: 0.6913 wallclock secs @ 14.4665/s (n=10)
(warning: too few iterations for a reliable count)
100000
100000
100000
100000
100000
100000
100000
100000
100000
100000
1: 0.9953 wallclock secs @ 10.0468/s (n=10)
(warning: too few iterations for a reliable count)
O---O--------O-----O------O
| | Rate | 1 | 0 |
O===O========O=====O======O
| 1 | 10.0/s | -- | -31% |
| 0 | 14.5/s | 44% | -- |
---------------------------
»
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment