Skip to content

Instantly share code, notes, and snippets.

@Whateverable
Created March 31, 2018 17:15
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/cc73341d08f572b67ba7430ad601ce81 to your computer and use it in GitHub Desktop.
Save Whateverable/cc73341d08f572b67ba7430ad601ce81 to your computer and use it in GitHub Desktop.
benchable6
compare HEAD (my $one = 16.rand.Int; my $two = (16-$one).rand.Int) xx 25000 ||| (^16).pick(2).sort xx 25000
¦HEAD: «Benchmark:
Timing 10 iterations of 0, 1...
0: 0.4622 wallclock secs @ 21.6374/s (n=10)
(warning: too few iterations for a reliable count)
1: 4.7007 wallclock secs @ 2.1274/s (n=10)
O---O--------O------O------O
| | Rate | 1 | 0 |
O===O========O======O======O
| 1 | 2.13/s | -- | -90% |
| 0 | 21.6/s | 917% | -- |
----------------------------
»
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment