Skip to content

Instantly share code, notes, and snippets.

@Whateverable
Created March 31, 2018 11:46
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/b1335c72ed01084052fcb1956d5137df to your computer and use it in GitHub Desktop.
Save Whateverable/b1335c72ed01084052fcb1956d5137df to your computer and use it in GitHub Desktop.
benchable6
compare HEAD my @þ = (0..1).roll(100_000) ||| my @þ = +Bool.roll xx 100_000
¦HEAD: «Benchmark:
Timing 10 iterations of 0, 1...
0: 0.6746 wallclock secs @ 14.8230/s (n=10)
(warning: too few iterations for a reliable count)
1: 0.5136 wallclock secs @ 19.4693/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 | 19.5/s | -- | 31% |
| 0 | 14.8/s | -24% | -- |
---------------------------
»
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment