in reply to Re: qr//i versus m//i
in thread qr//i versus m//i
See also Re: Multiple Regex evaluations or one big one?
Also if you use
You get (warning: too few iterations for a reliable count)my $str1 = my $str2 = my $str3 = my $str4 = my $str = 'очень длинная строка ' x 10; ... 'qr//i+m//' => q{ $str1 =~ /$re_i/; return; }, 'qr//+m//i' => q{ $str2 =~ /$re/i; return; }, 'qr//+m//' => q{ $str3 =~ /$re/; return; }, 'qr' => q{ $str4 =~ $re; return; },
If you my $count = -3; you get Timing is consistently zero in estimation loop, cannot benchmark. N=134217728
What this means? don't worry about it :)
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: qr//i versus m//i ( benchmark.qr.versus.inline.pl eval )
by Anonymous Monk on Feb 21, 2014 at 19:46 UTC |