Re: How can a simple loop be speed up faster than 1 second?
  Home FAQ Contact Sign in
perl.beginners only
 
Advanced search
POPULAR GROUPS

more...

perl.beginners Profile…
 Up
Re: How can a simple loop be speed up faster than 1 second?         


Author: Yitzle
Date: Feb 12, 2008 20:54

What are you trying to do?

$ time perl -e 'print "$_\n" for (1..100);'

That takes about 5 milliseconds on my ultra-fast PC. 100 loops. 5 milliseconds.
A second per loop? You can slow it down if you want to...
no comments