ApacheBench
ApacheBench is a single-threaded command line computer program used for benchmarking HTTP web servers. Originally it was used to test the HTTP Server">HyperText Transfer Protocol">HTTP Server but it is generic enough to test any web server supporting HTTP/1.0 or HTTP/1.1 protocol versions.
The
ab tool is written in C and it comes bundled with the standard Apache source distribution, and like the Apache web server itself, is free, open source software and distributed under the terms of the Apache License.History
The original program was namedzb "ZeusBench V1.0" and it was written by Adam Twiss, in 1996, in order to test performance of Zeus Web Server. Soon later Twiss licensed that program to the Apache Group so that the derived program was renamed ab "ApacheBench".Since 1997, 1998
ab has been further developed and maintained, as a support program included in Apache HTTP server, from version 1.0 to version 2.3 and later.Example usage
ab -n 10000 -c 10 "http://localhost/index.html"
This will execute 10000 HTTP GET requests, processing up to 10 requests concurrently, to the specified URL, in this example,
http://localhost/index.html which requires that a web server is running on port 80 of the same computer where ab is run.For an extended example of
ab output see also ab output for Squid performance tuning.