Skip to content

Instantly share code, notes, and snippets.

@Whateverable
Created March 31, 2018 11:44
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/fd4d7cd09df5c6e6d587ca71a9fbd33a to your computer and use it in GitHub Desktop.
Save Whateverable/fd4d7cd09df5c6e6d587ca71a9fbd33a 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.6481 wallclock secs @ 15.4299/s (n=10)
(warning: too few iterations for a reliable count)
1: 0.3451 wallclock secs @ 28.9752/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 | 29.0/s | -- | 88% |
| 0 | 15.4/s | -47% | -- |
---------------------------
»
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment