in reply to Perl array performance puzzle

And if swapping the ordering of the tests doesn't convince you, then try constructing both arrays using the same method.

You'll find that the benchmark shows a difference even when they are both constructed the same way.

It's worth bearing in mind that given the huge numbers of iterations being performed, even the largest (12%) difference shown, represents a difference of 0.000,000,014 of a second which hardly makes it a "large difference".


Examine what is said, not who speaks.
"Efficiency is intelligent laziness." -David Dunham
"Think for yourself!" - Abigail
"Memory, processor, disk in that order on the hardware side. Algorithm, algoritm, algorithm on the code side." - tachyon