Re: Re: comparing scripts performance

From: Date: Wed, 29 Aug 2001 11:21:11 +0000
Subject: Re: Re: comparing scripts performance
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-64990@lists.php.net to get a copy of this message
Thanks from Israel :) it helps, though I hope they will develope a function that returns speed, memory or even performance detail on parts of the script. Like: The for() took 3ms and consumed ... memory the while() took 2ms and consumed ... memory ... ... > you might want to add this to each of the scripts and see: > <? > //very first line of the script > echo "Script started at:" . date("D M j g:i:s T Y"); > //very last line of the script > echo "Script ended at:" . date("D M j g:i:s T Y"); > ?> > > btw, check the microtime() it have exatly what you're looking for. > > Greetings from Lebanon ;) > > > Is there a way to compare between two scripts ? > > > > like how much time took every script or how much memory/resources it used. > > -------------------------- Canaan Surfing Ltd. Internet Service Providers Ben-Nes Michael - Manager Tel: 972-4-6991122 http://sites.canaan.co.il --------------------------

« previous php.general (#64990) next »