Skip to content

Instantly share code, notes, and snippets.

@Whateverable
Created March 31, 2018 12:11
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/9804a74997b7ae183b721315f46f71c5 to your computer and use it in GitHub Desktop.
Save Whateverable/9804a74997b7ae183b721315f46f71c5 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(:50_000batch,:2degree).grep( *.so )
¦HEAD: «Benchmark:
Timing 10 iterations of 0, 1...
49986
49848
49950
50115
49819
50054
50063
50405
50066
50044
0: 3.3498 wallclock secs @ 2.9853/s (n=10)
50277
50253
50151
49957
50058
49836
49649
50080
49848
50296
1: 3.9840 wallclock secs @ 2.5101/s (n=10)
O---O--------O-----O------O
| | Rate | 1 | 0 |
O===O========O=====O======O
| 1 | 2.51/s | -- | -16% |
| 0 | 2.99/s | 19% | -- |
---------------------------
»
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment