nick wrote:

> Haha I tried its code and it only takes 1~2 secs to run it .
> 
> Well....god damn lies....


Intersting. I tried the following code (which gives much more detailed 
time info, check it out - stolen from Andrey Hristov on php-db), and my 
times, on our P2-266 webserver, are just above 9 seconds. That's at 
2000x2000 iterations, or 4M iterations.

Of course, I'm trying to figure out when I would have a script that 
really needed to go through 4M iterations, and thus (like most 
benchmarks) this probably has no real bearing on the (or at least my) 
real world.

<?
$starttime = explode(" ", microtime());
for ($i=0; $i<2000; $i++) {
         for ($j=0; $j<2000; $j++) {
         }
}
$endtime=explode(" ", microtime());
$starttime = $starttime[1]+$starttime[0];
$endtime   = $endtime[1]+$endtime[0];
$parse_time = $endtime-$starttime;
printf ("%.4f seconds",$parse_time);
?>
-- 
                _______      ___    _  ____  _____
Chris Hobbs   / ____\ \    / / |  | |/ ___\|  __ \
Head Geek    | (___  \ \  / /| |  | | (___ | |  | |
WebMaster     \___ \  \ \/ / | |  | |\___ \| |  | |
PostMaster    ____) |  \  /  | |__| |____) | |__| |
               \____/    \/    \____/ \____/|_____/
                   http://www.silvervalley.k12.ca.us
                       [EMAIL PROTECTED]


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to