2014-05-07 14:03:43 +01:00
|
|
|
# ab
|
|
|
|
|
|
|
|
> Apache Benchmarking tool. The simplest tool to perform a load testing.
|
2019-06-03 01:06:36 +01:00
|
|
|
> More information: <https://httpd.apache.org/docs/2.4/programs/ab.html>.
|
2014-05-07 14:03:43 +01:00
|
|
|
|
2016-01-07 17:31:27 +00:00
|
|
|
- Execute 100 HTTP GET requests to given URL:
|
2014-05-07 14:03:43 +01:00
|
|
|
|
2018-11-03 10:30:41 +00:00
|
|
|
`ab -n {{100}} {{url}}`
|
2014-05-07 14:03:43 +01:00
|
|
|
|
2016-01-07 17:31:27 +00:00
|
|
|
- Execute 100 HTTP GET requests, processing up to 10 requests concurrently, to given URL:
|
2014-05-07 14:03:43 +01:00
|
|
|
|
2018-11-03 10:30:41 +00:00
|
|
|
`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}}`
|