Created
April 4, 2018 12:28
-
-
Save Whateverable/e74345b3d61290a80a7cc0213604c849 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 for ^100 X ^100 -> ($x,$y) { } ||| for ^100 -> $x { for ^100 -> $y { } } ||| my \a = gather for ^100 -> $x { for ^100 -> $y { take ($x,$y) } }; my $it = a.iterator; until (my \n := $it.pull-one) =:= IterationEnd { } |
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, 2... | |
0: 1.7635 wallclock secs @ 5.6707/s (n=10) | |
1: 0.0223 wallclock secs @ 447.8693/s (n=10) | |
(warning: too few iterations for a reliable count) | |
2: 0.3006 wallclock secs @ 33.2673/s (n=10) | |
(warning: too few iterations for a reliable count) | |
O---O--------O------O-------O-------O | |
| | Rate | 1 | 0 | 2 | | |
O===O========O======O=======O=======O | |
| 1 | 448/s | -- | 7798% | 1246% | | |
| 0 | 5.67/s | -99% | -- | -83% | | |
| 2 | 33.3/s | -93% | 487% | -- | | |
------------------------------------- | |
» |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment