Skip to content

Instantly share code, notes, and snippets.

@Whateverable
Created March 31, 2018 12:07
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/6e756d0598304e9a8e97d59ce0957ffa to your computer and use it in GitHub Desktop.
Save Whateverable/6e756d0598304e9a8e97d59ce0957ffa to your computer and use it in GitHub Desktop.
benchable6
compare HEAD say +(0..1).roll(100_000).grep( * ) ||| say (0..1).roll(100_000).grep( * ).elems
¦HEAD: «Benchmark:
Timing 10 iterations of 0, 1...
100000
100000
100000
100000
100000
100000
100000
100000
100000
100000
0: 0.8757 wallclock secs @ 11.4197/s (n=10)
(warning: too few iterations for a reliable count)
100000
100000
100000
100000
100000
100000
100000
100000
100000
100000
1: 0.8446 wallclock secs @ 11.8403/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 | 11.8/s | -- | 4% |
| 0 | 11.4/s | -4% | -- |
-------------------------
»
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment