docs:apache_web_server:benchmarking

Benchmarking

  • Source - Programming PHP, 2nd Edition, Chapter 13

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.

  • docs/apache_web_server/benchmarking.txt
  • Last modified: 2008/08/03 00:25
  • by 127.0.0.1