Skip to content

Instantly share code, notes, and snippets.

@Whateverable
Created March 31, 2018 11:45
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/22a57229dc70e3d11ef8cd3694b6520b to your computer and use it in GitHub Desktop.
Save Whateverable/22a57229dc70e3d11ef8cd3694b6520b to your computer and use it in GitHub Desktop.
benchable6
compare HEAD (0..1).roll(100_000) ||| Nil
¦HEAD: «Benchmark:
Timing 10 iterations of 0, 1...
0: 0.0107 wallclock secs @ 930.5669/s (n=10)
(warning: too few iterations for a reliable count)
1: 0.0001 wallclock secs @ 66929.5042/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 | 66920/s | -- | 7091% |
| 0 | 931/s | -99% | -- |
------------------------------
»
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment