Created
January 6, 2021 10:24
-
-
Save Whateverable/2e12a32826aaddca447267c02e57f138 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 = "foo"; my $b; my $c; for ^1_000 { $b = $a.^can("index"); $c = $a.^can("bar") } ||| my $x = "foo"; my $y; my $z; for ^1_000 { $y = $x.^lookup("index"); $z = $x.^lookup("bar") } |
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... | |
0: 0.060 wallclock secs (0.060 usr 0.000 sys 0.060 cpu) @ 167.062/s (n=10) | |
(warning: too few iterations for a reliable count) | |
1: 0.049 wallclock secs (0.052 usr 0.000 sys 0.052 cpu) @ 204.470/s (n=10) | |
(warning: too few iterations for a reliable count) | |
O---O-------O------O-----O | |
| | Rate | 0 | 1 | | |
O===O=======O======O=====O | |
| 0 | 167/s | -- | 23% | | |
| 1 | 204/s | -18% | -- | | |
O---O-------O------O-----O | |
» |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment