Skip to content

Instantly share code, notes, and snippets.

@Whateverable
Created March 31, 2018 12:01
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/8755e4e59322ed41e06c3397b65b0feb to your computer and use it in GitHub Desktop.
Save Whateverable/8755e4e59322ed41e06c3397b65b0feb to your computer and use it in GitHub Desktop.
benchable6
compare HEAD say (0..1).roll(100_000).sum ||| say +(0..1).roll(100_000).grep( *.so )
¦HEAD: «Benchmark:
Timing 10 iterations of 0, 1...
50013
49480
49771
50294
50111
50030
49793
50129
49885
49928
0: 0.6666 wallclock secs @ 15.0020/s (n=10)
(warning: too few iterations for a reliable count)
49926
49933
50087
49917
50214
49961
50296
50080
49986
50104
1: 2.0801 wallclock secs @ 4.8074/s (n=10)
O---O--------O------O------O
| | Rate | 1 | 0 |
O===O========O======O======O
| 1 | 4.81/s | -- | -68% |
| 0 | 15.0/s | 212% | -- |
----------------------------
»
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment