Created
October 18, 2013 19:56
-
-
Save moritz/7047280 to your computer and use it in GitHub Desktop.
Artificial benchmark for index scan
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
my str $target := nqp::x('abc', 500) ~ 'def'; | |
my $before := nqp::time_n(); | |
say($target ~~ /def/); | |
my $after := nqp::time_n(); | |
say($after - $before); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment