Re: how should i test my php program performance?
| From: | Fernando Ferreras | Date: | Wed, 22 Aug 2001 15:46:05 +0000 |
| Subject: | Re: how should i test my php program performance? | ||
| References: | 1 | Groups: | php.db |
| Request: | Send a blank email to php-db+get-11662@lists.php.net to get a copy of this message | ||
Hi,
You can get the time(); or microtime(); (in linux) in the beginning and in
the endo of the code..
example:
<?
$t1 = time();
code...
$t2 = time();
echo "Total time is".($t2 - $t1)."seconds.";
?>
[]s
Ferreras
> Dear all:
>
> I have wrote a php program and use mysql database.
> Is there a way to test its performance?
> Thanks.
>
> haheho
>
>
>
> --
> PHP Database Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: php-db-unsubscribe@lists.php.net
> For additional commands, e-mail: php-db-help@lists.php.net
> To contact the list administrators, e-mail: php-list-admin@lists.php.net
>
>
>
>