ApacheBench
This article has multiple issues. Please help improve it or discuss these issues on the talk page. (Learn how and when to remove these template messages)
|
ApacheBench (ab
is the real
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 named zb
"ZeusBench V1.0" and it was written by Adam Twiss (
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 (1997,1998) to version 2.3 (2021) and later.[2]
Example usage
ab -n 10000 -c 10 "http://localhost/index.html"
This will execute 10000
http://localhost/index.html
which requires that a web server is running on port 80 of the same computer where ab is run.[3]For an extended example of ab
output see also ab output for Squid performance tuning.
Concurrency versus threads
Note that ApacheBench will only use one operating system thread regardless of the concurrency level (specified by the -c parameter). In some cases, especially when benchmarking high-capacity servers, a single instance of ApacheBench can itself be a bottleneck. When using ApacheBench on hardware with multiple processor cores, additional instances of ApacheBench may be used in parallel to more fully saturate the target URL.
Detecting ApacheBench
The ApacheBench
See also
- Internet Application Management
- Web server benchmarking
References
- ^ "ab - Apache HTTP server benchmarking tool". Apache. Retrieved 9 October 2014.
- ^ "Apache HTTP Server: ab source code, comments". Apache: HTTPd server project. 2021. Retrieved 2021-12-20.
- ^ "Using Apache Bench for Simple Load Testing". Pete Freitag's ColdFusion, Java and Web Development Blog. Retrieved 9 October 2014.
- ^ "User-agent detail: AB (Apache Bench) output". User-Agent-String-Info. Retrieved 9 October 2014.