Skip to content

Instantly share code, notes, and snippets.

@Whateverable
Created March 31, 2018 11:48
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/54f4c1012925df02aaa6f7cb4e9c16cb to your computer and use it in GitHub Desktop.
Save Whateverable/54f4c1012925df02aaa6f7cb4e9c16cb to your computer and use it in GitHub Desktop.
benchable6
compare HEAD say (0..1).roll(100_000).sum ||| say (+Bool.roll xx 100_000).sum
¦HEAD: «Benchmark:
Timing 10 iterations of 0, 1...
49614
49909
49802
49660
50175
49843
49810
50072
50157
50073
0: 0.7023 wallclock secs @ 14.2390/s (n=10)
(warning: too few iterations for a reliable count)
49957
50292
49962
50374
50123
49920
50205
50113
50078
49854
1: 0.9678 wallclock secs @ 10.3327/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.3/s | -- | -27% |
| 0 | 14.2/s | 38% | -- |
---------------------------
»
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment