Skip to content

Instantly share code, notes, and snippets.

@Whateverable
Created March 31, 2018 11:21
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/2d26d115d587cb0ba762031cbe6750b0 to your computer and use it in GitHub Desktop.
Save Whateverable/2d26d115d587cb0ba762031cbe6750b0 to your computer and use it in GitHub Desktop.
benchable6
compare HEAD say sum (0..1).roll(100_000) ||| say sum (0..1).roll xx 100_000
¦HEAD: «Benchmark:
Timing 10 iterations of 0, 1...
50029
50086
50135
50031
50098
49864
49999
49907
50300
49986
0: 0.6425 wallclock secs @ 15.5633/s (n=10)
(warning: too few iterations for a reliable count)
50177
50200
50062
49787
50141
50199
49888
50132
50002
50119
1: 2.9428 wallclock secs @ 3.3981/s (n=10)
O---O--------O------O------O
| | Rate | 1 | 0 |
O===O========O======O======O
| 1 | 3.40/s | -- | -78% |
| 0 | 15.6/s | 358% | -- |
----------------------------
»
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment