Skip to content

Instantly share code, notes, and snippets.

@Whateverable
Created March 31, 2018 12:10
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/dea3aadd440e955c52fefc2e75cc8a98 to your computer and use it in GitHub Desktop.
Save Whateverable/dea3aadd440e955c52fefc2e75cc8a98 to your computer and use it in GitHub Desktop.
benchable6
compare HEAD say +(0..1).roll(100_000).race.grep( *.so ) ||| say +(0..1).roll(100_000).race(:20_000batch).grep( *.so )
¦HEAD: «Benchmark:
Timing 10 iterations of 0, 1...
50093
49883
50004
50452
50048
50072
49693
49989
50197
50095
0: 4.5332 wallclock secs @ 2.2059/s (n=10)
50029
50011
49922
50023
50155
49740
50018
50024
49847
49827
1: 3.5016 wallclock secs @ 2.8558/s (n=10)
O---O--------O------O-----O
| | Rate | 1 | 0 |
O===O========O======O=====O
| 1 | 2.86/s | -- | 29% |
| 0 | 2.21/s | -23% | -- |
---------------------------
»
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment