1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-07-14 06:15:28 +02:00
tldr/pages/common/ab.md
Reinhart Previano Koentjoro d6d4561c17
pages*: fix documentation mistakes (#11641)
* a2ping: minor fixes

* ab: fix mnemonics

* ab: fix mnemonics

* ab: fix mnemonics

* abduco: add mnemonics

* accelerate: use Hugging Face as a trademark

* ack: highlight grep as a command

* acme.sh: highlight certbot as command

* act: add mnemonics

* ag: highlight ack as command

* age-keygen: add Oxford comma

* linux/shutdown: add mnemonics

* airdecap-ng: use Oxford comma

* alex: use standard path name template
2023-12-03 19:59:57 +07:00

657 B

ab

Apache HTTP server benchmarking tool. More information: https://httpd.apache.org/docs/current/programs/ab.html.

  • Execute 100 HTTP GET requests to a given URL:

ab -n {{100}} {{url}}

  • Execute 100 HTTP GET requests, in concurrent batches of 10, to a URL:

ab -n {{100}} -c {{10}} {{url}}

  • Execute 100 HTTP POST requests to a URL, using a JSON payload from a file:

ab -n {{100}} -T {{application/json}} -p {{path/to/file.json}} {{url}}

  • Use HTTP [k]eep-Alive, i.e. perform multiple requests within one HTTP session:

ab -k {{url}}

  • Set the maximum number of seconds ([t]imeout) to spend for benchmarking:

ab -t {{60}} {{url}}