Skip to content

Instantly share code, notes, and snippets.

@Whateverable
Created March 31, 2018 11:31
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/7537f1227802f07c8a3b09754fd92c7a to your computer and use it in GitHub Desktop.
Save Whateverable/7537f1227802f07c8a3b09754fd92c7a to your computer and use it in GitHub Desktop.
benchable6
compare HEAD say sum (0..1).roll(100_000) ||| say sum Bool.roll xx 100_000
¦HEAD: «Benchmark:
Timing 10 iterations of 0, 1...
49798
50163
49766
49817
49987
49821
49910
49809
49840
50166
0: 0.7370 wallclock secs @ 13.5680/s (n=10)
(warning: too few iterations for a reliable count)
50062
50027
50095
50094
50057
50068
49922
49872
49929
50033
1: 0.9627 wallclock secs @ 10.3871/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 | 10.4/s | -- | -23% |
| 0 | 13.6/s | 31% | -- |
---------------------------
»
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment