Re: measuring cpu time

From: Date: Wed, 04 Apr 2001 02:42:49 +0000
Subject: Re: measuring cpu time
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-46950@lists.php.net to get a copy of this message
The closest I know of is using microtime at the start and end of a piece of code to see how long it took. You'll want to run the script through a loop, usually around 10 times at least if it's not a big script, and then average together 10 tests. -- Plutarck Should be working on something... ...but forgot what it was. ""Brian Hardwick"" <bhardwick@tangible-networks.com> wrote in message news:000501c0bcb1$130f7fb0$0200a8c0@brianslaptop... > Im trying to optimize some php/mysql code. Does anyone know a way to > measure the amount cpu time a php script consumes? > > - Brian Hardwick > Tangible Networks > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net > For additional commands, e-mail: php-general-help@lists.php.net > To contact the list administrators, e-mail: php-list-admin@lists.php.net >

« previous php.general (#46950) next »