Skip to content

Instantly share code, notes, and snippets.

@Whateverable
Created March 31, 2018 12:09
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/b6e937debc456d797e1b974b22b84e4d to your computer and use it in GitHub Desktop.
Save Whateverable/b6e937debc456d797e1b974b22b84e4d 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).race.grep( *.so )
¦HEAD: «Benchmark:
Timing 10 iterations of 0, 1...
49864
49999
50041
49799
49962
50253
50039
50107
50268
50210
0: 0.9610 wallclock secs @ 10.4061/s (n=10)
(warning: too few iterations for a reliable count)
49883
49960
49925
49989
49861
49988
50001
49736
49955
50093
1: 4.9515 wallclock secs @ 2.0196/s (n=10)
O---O--------O------O------O
| | Rate | 1 | 0 |
O===O========O======O======O
| 1 | 2.02/s | -- | -81% |
| 0 | 10.4/s | 415% | -- |
----------------------------
»
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment