in reply to Re: Are perlfaq6 and perlop correct about "/o" modifier?
in thread Are perlfaq6 and perlop correct about "/o" modifier?

Note that /o is only 140% faster and not 750% faster.

I ran this under a few versions of Perl and /o is 200% faster with 5.42.0 because qr and o=0 are slower!

5.42.0:

      Rate  o=0   qr  o=1
o=0 4.17/s   -- -14% -67%
qr  4.85/s  17%   -- -61%
o=1 12.5/s 200% 158%   --
5.38.2:
      Rate  o=0   qr  o=1
o=0 5.22/s   -- -17% -58%
qr  6.31/s  21%   -- -50%
o=1 12.5/s 140%  98%   --
5.16.3:
      Rate  o=0   qr  o=1
o=0 8.26/s   --  -4% -38%
qr  8.57/s   4%   -- -36%
o=1 13.4/s  62%  56%   --
  • Comment on Re^2: Are perlfaq6 and perlop correct about "/o" modifier?