Comment: Re:Finding the bottleneck... an update (Score 1) on 2009.06.01 18:19
by
korpenkraxar
on 2009.06.01 18:19
(#68902)
Attached to: How to compare and benchmark Perl5 and Perl6 performance?
Attached to: How to compare and benchmark Perl5 and Perl6 performance?
It seems you are indeed right about the postfix being an important bottleneck. It never even occurred to me to change that to some other way of incrementing $i, but this is how it looks for me doing 10000 iterations:
$i++; # 7.5s
$i += 1; # 3.5s
$i = $i + 1; # 3.5s
In all cases it uses the expected ~130MB RAM, so at least there does not seem to be a significant leak specific to one of these expressions.
Read More
12 comments
$i++; # 7.5s
$i += 1; # 3.5s
$i = $i + 1; # 3.5s
In all cases it uses the expected ~130MB RAM, so at least there does not seem to be a significant leak specific to one of these expressions.
