Re: how should i test my php program performance?
| From: | Andrey Hristov | Date: | Wed, 22 Aug 2001 15:52:31 +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-11663@lists.php.net to get a copy of this message | ||
<?php
$starttime=explode(' ',microtime());
// code is here
//
//
$endtime=explode(' ',microtime());
$starttime=$starttime[1]+$starttime[0];
$endtime=$endtime[1]+$endtime[0];
$parse_time=$endtime-$starttime;
?>
Try apache benchmarking tool to view what is the peak of executions per
second.
I don't use linux but think that the name of the executable is 'ab'
Andrey Hristov
http://www.icygen.com
99%
----- Original Message -----
From: "haheho" <haheho@seed.net.tw>
To: <php-db@lists.php.net>
Sent: Wednesday, August 22, 2001 6:23 PM
Subject: [PHP-DB] how should i test my php program performance?
> 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
>
>