Skip to content

Instantly share code, notes, and snippets.

@moritz
Created October 18, 2013 19:56
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save moritz/7047280 to your computer and use it in GitHub Desktop.
Artificial benchmark for index scan
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