Skip to content

Instantly share code, notes, and snippets.

@Whateverable
Created December 18, 2017 12:13
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/adea7e8ac92fd0c6b4ebe08a5249a813 to your computer and use it in GitHub Desktop.
Save Whateverable/adea7e8ac92fd0c6b4ebe08a5249a813 to your computer and use it in GitHub Desktop.
benchable6
compare HEAD multi sub a(Int $i) { nextsame }; multi sub a(Any $a) { }; a($_) for ^10000 ||| multi sub b(Int $i) { b(Any) }; multi sub b(Any $a) { }; b($_) for ^10000
¦HEAD: «Benchmark:
Timing 10 iterations of 0, 1...
0: 1.0158 wallclock secs @ 9.8441/s (n=10)
1: 0.0425 wallclock secs @ 235.4311/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 | 235/s | -- | 2292% |
| 0 | 9.84/s | -96% | -- |
-----------------------------
»
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment