Created
December 12, 2017 21:02
-
-
Save Whateverable/25788b01599b86f109c4e218f7f2a16d 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 $a; (^90 X ^90).map( -> ($x, $y) { $a++ }); say $a; ||| my $a; (^90 X ^90).flat.map(-> $x, $y { $a++ }); say $a; |
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... | |
8100 | |
8100 | |
8100 | |
8100 | |
8100 | |
8100 | |
8100 | |
8100 | |
8100 | |
8100 | |
0: 1.4003 wallclock secs @ 7.1411/s (n=10) | |
8100 | |
8100 | |
8100 | |
8100 | |
8100 | |
8100 | |
8100 | |
8100 | |
8100 | |
8100 | |
1: 0.7992 wallclock secs @ 12.5129/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.5/s | -- | 75% | | |
| 0 | 7.14/s | -43% | -- | | |
--------------------------- | |
» |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment