Hello,
Attached a benchmark script that shows unexpected results on perl
5.10+, but works better on perl 5.8. Details in blog posts [1, 2].
Results:
This is perl, v5.8.9 built for darwin-thread-multi-2level
Rate no_o o no_o_pre no_o_pre_braces static
no_o 1581903/s -- -10% -25% -32% -50%
o 1764430/s 12% -- -16% -24% -44%
no_o_pre 2104366/s 33% 19% -- -9% -34%
no_o_pre_braces 2323549/s 47% 32% 10% -- -27%
static 3174754/s 101% 80% 51% 37% --
This is perl, v5.10.0 built for darwin-thread-multi-2level
Rate no_o_pre no_o_pre_braces no_o o static
no_o_pre 873813/s -- -0% -52% -68% -75%
no_o_pre_braces 877714/s 0% -- -52% -68% -75%
no_o 1816840/s 108% 107% -- -34% -49%
o 2759410/s 216% 214% 52% -- -22%
static 3542486/s 305% 304% 95% 28% --
Can you reproduce results?
[1] http://cubloid.blogspot.com/2012/04/performance-regression-in-perl-with.html
[2] http://cubloid.blogspot.com/2009/10/faster-composite-regular-expressions.html
--
Best regards, Ruslan.
Thread Next