man > ab

πŸ“› NAME

ab - Apache HTTP server benchmarking tool

πŸš€ Quick Reference

Use CaseCommandDescription
Basic benchmarkab -n 100 -c 10 http://example.com/100 requests, 10 concurrent
Keep-Alive testab -k -n 1000 -c 100 http://example.com/Enable HTTP KeepAlive for efficiency
POST JSON dataab -p post.json -T application/json -n 100 -c 10 http://example.com/apiSend POST with JSON body
Basic authenticationab -A user:pass -n 100 -c 10 http://example.com/Supply credentials for protected resources
Proxy benchmarkingab -X proxy:8080 -n 100 -c 10 http://example.com/Route requests through a proxy
Time‑limited testab -t 30 -c 10 http://example.com/Benchmark for 30 seconds
Export percentiles to CSVab -e results.csv -n 1000 -c 100 http://example.com/Save detailed timings for analysis

πŸ“– SYNOPSIS

ab [ -A auth-username:password ] [ -b windowsize ] [ -B local-address ] [ -c concurrency ] 
   [ -C cookie-name=value ] [ -d ] [ -e csv-file ] [ -E client-certificate file ] [ -f protocol ] 
   [ -g gnuplot-file ] [ -h ] [ -H custom-header ] [ -i ] [ -k ] [ -l ] [ -m HTTP-method ] 
   [ -n requests ] [ -p POST-file ] [ -P proxy-auth-username:password ] [ -q ] [ -r ] 
   [ -s timeout ] [ -S ] [ -t timelimit ] [ -T content-type ] [ -u PUT-file ] [ -v verbosity] 
   [ -V ] [ -w ] [ -x <table>-attributes ] [ -X proxy[:port] ] [ -y <tr>-attributes ] 
   [ -z <td>-attributes ] [ -Z ciphersuite ] [http[s]://]hostname[:port]/path

πŸ“‹ SUMMARY

ab is a tool for benchmarking your Apache Hypertext Transfer Protocol (HTTP) server. It is designed to give you an impression of how your current Apache installation performs. This especially shows you how many requests per second your Apache installation is capable of serving.

βš™οΈ OPTIONS

πŸ“Š OUTPUT

The following list describes the values returned by ab:

πŸ› BUGS

There are various statically declared buffers of fixed length. Combined with the lazy parsing of the command line arguments, the response headers from the server and other external inputs, this might bite you.

It does not implement HTTP/1.x fully; only accepts some 'expected' forms of responses. The rather heavy use of strstr(3) shows up top in profile, which might indicate a performance problem; i.e., you would measure the ab performance rather than the server's.

AB(1)

ab
πŸ“› NAME πŸš€ Quick Reference πŸ“– SYNOPSIS πŸ“‹ SUMMARY βš™οΈ OPTIONS πŸ“Š OUTPUT πŸ› BUGS

Generated by phpman v4.9.27 · Markdown · JSON · MCP Author: Che Dong Under GNU General Public License
2026-07-18 18:00 @2600:1f28:365:80b0:f8a4:e764:d6bb:8e66
CrawledBy CCBot/2.0 (https://commoncrawl.org/faq/)
Valid XHTML 1.0 Transitional!Valid CSS!
Enhanced by LLM: deepseek-v4-flash / taotoken.net / www.chedong.com - original format

^_top_^