Benchmarking

The Apache benchmarking utility “ab” can do high level performance testing.

$ /usr/local/apache/bin/ab -c 10 -n 1000 http://localhost/info.php

This command tests the speed of the PHP script info.php 1,000 times, with 10 concurrent requests running at any given time.

You can compare the results against a static HTML page to see how quickly your script performs. Note that this will not be representative if your script uses sessions.