in reply to Re^4: perl process slower and slower when loop number increase
in thread perl process slower and slower when loop number increase

I still think there limit number between $i=100000 and $i=1000000

What do you mean by this? All you've shown is a fairly linear relationship between the loop count and time, exactly what dave_the_m said.

     10000   0.004
    100000   0.012
   1000000   0.088
  10000000   0.724
 100000000   7.256
1000000000  73.828
  • Comment on Re^5: perl process slower and slower when loop number increase