Skip to content

Instantly share code, notes, and snippets.

@Whateverable
Created March 31, 2018 11:32
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/fb3e9d86f05cd75a4f08d1c93538ad5b to your computer and use it in GitHub Desktop.
Save Whateverable/fb3e9d86f05cd75a4f08d1c93538ad5b to your computer and use it in GitHub Desktop.
benchable6
compare HEAD say sum (0..1).roll(100_000) ||| say sum so Bool.roll xx 100_000
¦HEAD: «Benchmark:
Timing 10 iterations of 0, 1...
50185
49848
50199
50227
50278
50155
50166
49991
49828
50023
0: 0.6381 wallclock secs @ 15.6710/s (n=10)
(warning: too few iterations for a reliable count)
1
1
1
1
1
1
1
1
1
1
1: 0.2128 wallclock secs @ 46.9849/s (n=10)
(warning: too few iterations for a reliable count)
O---O--------O------O------O
| | Rate | 1 | 0 |
O===O========O======O======O
| 1 | 47.0/s | -- | 200% |
| 0 | 15.7/s | -67% | -- |
----------------------------
»
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment