Re: PHP/SQL Benchmarking
| From: | Rasmus Lerdorf | Date: | Mon, 05 Jun 2000 16:41:07 +0000 |
| Subject: | Re: PHP/SQL Benchmarking | ||
| References: | 1 | Groups: | php.db |
| Request: | Send a blank email to php-db+get-209@lists.php.net to get a copy of this message | ||
> The more I work in PHP and MySQL, the more complex my scripts get, and the
> more I worry about performance. What's the best way to benchmark how long
> various operations are taking?
Apache comes bundled with a program called ab (ApacheBench)
ab -n 1000 -c 5 http://some.url/path/file.php
Run that against your file and see how many requests per second you can
get. Then make whatever changes and test again to see how much your
changes slow you down.
-Rasmus