Skip to content

Instantly share code, notes, and snippets.

@Whateverable
Created April 8, 2018 18:24
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/06c3413d371079365f1f6d90ef5237f1 to your computer and use it in GitHub Desktop.
Save Whateverable/06c3413d371079365f1f6d90ef5237f1 to your computer and use it in GitHub Desktop.
benchable6
compare HEAD Bool.roll(10000) ||| Bool.roll xx 10000 ||| (0,1).roll(10000) ||| (0,1).roll xx 10000
¦HEAD: «Benchmark:
Timing 10 iterations of 0, 1, 2, 3...
0: 0.0004 wallclock secs @ 28079.4324/s (n=10)
(warning: too few iterations for a reliable count)
1: 0.0111 wallclock secs @ 903.0256/s (n=10)
(warning: too few iterations for a reliable count)
2: 0.0003 wallclock secs @ 35750.5345/s (n=10)
(warning: too few iterations for a reliable count)
3: 0.0744 wallclock secs @ 134.4957/s (n=10)
(warning: too few iterations for a reliable count)
O---O---------O-------O-------O--------O-------O
| | Rate | 1 | 0 | 3 | 2 |
O===O=========O=======O=======O========O=======O
| 1 | 903/s | -- | -97% | 571% | -97% |
| 0 | 28070/s | 3009% | -- | 20771% | -21% |
| 3 | 134/s | -85% | -100% | -- | -100% |
| 2 | 35750/s | 3859% | 27% | 26481% | -- |
------------------------------------------------
»
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment