Skip to content

Instantly share code, notes, and snippets.

@Whateverable
Created March 31, 2018 11:16
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/8d36dd8f2c497a1f8ec9d43d18078eab to your computer and use it in GitHub Desktop.
Save Whateverable/8d36dd8f2c497a1f8ec9d43d18078eab to your computer and use it in GitHub Desktop.
benchable6
compare HEAD say sum Bool.roll xx 100000; ||| say sum Bool.roll(100000)
¦HEAD: «Benchmark:
Timing 10 iterations of 0, 1...
50035
50021
50046
49766
50184
50031
50053
50175
50129
50078
0: 0.2144 wallclock secs @ 46.6496/s (n=10)
(warning: too few iterations for a reliable count)
49812
50001
49773
50095
50353
49741
49808
49994
50026
50077
1: 2.3081 wallclock secs @ 4.3326/s (n=10)
O---O--------O------O------O
| | Rate | 1 | 0 |
O===O========O======O======O
| 1 | 4.33/s | -- | -91% |
| 0 | 46.6/s | 977% | -- |
----------------------------
»
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment