Skip to content

Instantly share code, notes, and snippets.

@Whateverable
Created March 31, 2018 12:08
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/4f91560ccd8dcdeb5acbfe4272919186 to your computer and use it in GitHub Desktop.
Save Whateverable/4f91560ccd8dcdeb5acbfe4272919186 to your computer and use it in GitHub Desktop.
benchable6
compare HEAD say +(0..1).roll(100_000).grep( *.so ) ||| say (0..1).roll(100_000).grep( *.so ).elems
¦HEAD: «Benchmark:
Timing 10 iterations of 0, 1...
50161
50099
49834
49931
50069
50263
50228
49877
50019
50239
0: 1.0725 wallclock secs @ 9.3241/s (n=10)
50126
50017
49941
49975
50041
50027
49812
49942
50042
49948
1: 2.8012 wallclock secs @ 3.5699/s (n=10)
O---O--------O------O------O
| | Rate | 1 | 0 |
O===O========O======O======O
| 1 | 3.57/s | -- | -62% |
| 0 | 9.32/s | 161% | -- |
----------------------------
»
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment