http://www.perlmonks.org?node_id=888487


in reply to Re^3: Unpacking and converting
in thread Unpacking and converting

I think in this case the array creation and population makes significant influence on results.

Sure, but in the original case the benchmark is flawed:  the test code is being executed many times, and after the first execution, the array @b has been emptied... (unlike the arrays for the other cases)

Code that modifies test input is notoriously tricky to benchmark.