ab - HTTP Benchmarking

Published: 2007-11-19

Apache offers a very user friendly benchmarking tool called 'ApacheBench (ab)'. It's designed to give you an idea of how your current apache setup is performing and comes bundled with the standard Apache source distribution.

Commands to run...

Make 50 requests with a concurrency of rate of 5.

ab -n 50 -c 5 http://localhost/

Open 10 KeepAlive connections for 15 seconds.

ab -kc 10 -t 15 http://localhost/

Plus there are loads more to be found at http://httpd.apache.org/docs/2.0/programs/ab.html.

Results are fairly self explanatory and printed in a nice tabular format, these can then be used to optimise/fine-tune you server setup.

More from this section

RECENT ARTICLES

Lightweight blog created on Ruby/GAA/Datastore stack

Put this together a month or two back but never got around to replaci... read more

Using Node JS and Couch DB Stack for Web Dev

With the recent hype surrounding Node.js I thought I'd better get my ... read more

Campaign Monitor API Using PHP and SOAP

Campaign Monitor has a fairly comprehensive API and support docs.&nbs... read more

Google Maps Snippet

Absolute bare basics when it comes the Google Map api but a snippet o... read more

CREDITS

powered by php-wax the php framework