Skip to content

Instantly share code, notes, and snippets.

@Whateverable
Created March 31, 2018 17:13
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/0970899f8a510eabd7029d4fec24fa75 to your computer and use it in GitHub Desktop.
Save Whateverable/0970899f8a510eabd7029d4fec24fa75 to your computer and use it in GitHub Desktop.
benchable6
compare HEAD (my $one = 16.rand.Int; my $two = (16-$one).rand.Int) xx 10000 ||| (^16).roll(2).sort xx 10000
¦HEAD: «Benchmark:
Timing 10 iterations of 0, 1...
0: 0.1656 wallclock secs @ 60.3723/s (n=10)
(warning: too few iterations for a reliable count)
1: 1.3648 wallclock secs @ 7.3273/s (n=10)
O---O--------O------O------O
| | Rate | 1 | 0 |
O===O========O======O======O
| 1 | 7.33/s | -- | -88% |
| 0 | 60.4/s | 724% | -- |
----------------------------
»
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment