Created
March 25, 2017 14:41
-
-
Save Whateverable/43d49c93c5ddffa99e7ab3d8071c2acd to your computer and use it in GitHub Desktop.
benchable6
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
compare HEAD my $s = 0; $s = $s + 1 for ^1_000_000; say $s; ||| my $s = 0; loop (my int $i = 1; $i <= 1_000_000; $i = $i + 1) {$s = $s + 1}; say $s; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
¦HEAD: «Benchmark: | |
Timing 10 iterations of 0, 1... | |
1000000 | |
1000000 | |
1000000 | |
1000000 | |
1000000 | |
1000000 | |
1000000 | |
1000000 | |
1000000 | |
1000000 | |
0: 5.4371 wallclock secs @ 1.8392/s (n=10) | |
1000000 | |
1000000 | |
1000000 | |
1000000 | |
1000000 | |
1000000 | |
1000000 | |
1000000 | |
1000000 | |
1000000 | |
1: 0.7964 wallclock secs @ 12.5573/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 | 12.6/s | -- | 583% | | |
| 0 | 1.84/s | -85% | -- | | |
----------------------------» |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment