Re: php's future

From: Date: Sun, 02 Sep 2001 19:00:26 +0000
Subject: Re: php's future
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-65655@lists.php.net to get a copy of this message
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 chobbs@silvervalley.k12.ca.us

« previous php.general (#65655) next »