Skip to content

Instantly share code, notes, and snippets.

@Whateverable
Created March 25, 2017 14:44
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/f72c3331f3e333521e599d3a82bb0e20 to your computer and use it in GitHub Desktop.
Save Whateverable/f72c3331f3e333521e599d3a82bb0e20 to your computer and use it in GitHub Desktop.
benchable6
compare HEAD my int $s = 0; for ^100_000 -> int $_ { $s = $s + 1 }; say $s; ||| my $s = 0; $s = $s + 1 for ^100_000; say $s;
¦HEAD: «Benchmark:
Timing 10 iterations of 0, 1...
100000
100000
100000
100000
100000
100000
100000
100000
100000
100000
0: 0.6010 wallclock secs @ 16.6383/s (n=10)
(warning: too few iterations for a reliable count)
100000
100000
100000
100000
100000
100000
100000
100000
100000
100000
1: 0.5562 wallclock secs @ 17.9784/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 | 18.0/s | -- | 8% |
| 0 | 16.6/s | -7% | -- |
-------------------------»
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment