mirror of https://github.com/CrimsonTome/tldr.git
20 lines
401 B
Markdown
20 lines
401 B
Markdown
# ab
|
|
|
|
> Apache Benchmarking tool. The simplest tool to perform a load testing.
|
|
|
|
- Execute 100 HTTP GET requests to given URL:
|
|
|
|
`ab -n {{100}} {{url}}`
|
|
|
|
- Execute 100 HTTP GET requests, processing up to 10 requests concurrently, to given URL:
|
|
|
|
`ab -n {{100}} -c {{10}} {{url}}`
|
|
|
|
- Use keep alive:
|
|
|
|
`ab -k {{url}}`
|
|
|
|
- Set the maximum number of seconds to spend for benchmarking:
|
|
|
|
`ab -t {{60}} {{url}}`
|