ab: add new examples (#2514)

italian
Miguel Mendes 2018-11-03 07:30:41 -03:00 committed by Starbeamrainbowlabs
parent fb6c361c7c
commit 8aea0e5773
1 changed files with 10 additions and 2 deletions

View File

@ -4,8 +4,16 @@
- Execute 100 HTTP GET requests to given URL: - Execute 100 HTTP GET requests to given URL:
`ab -n 100 {{url}}` `ab -n {{100}} {{url}}`
- Execute 100 HTTP GET requests, processing up to 10 requests concurrently, to given URL: - Execute 100 HTTP GET requests, processing up to 10 requests concurrently, to given URL:
`ab -n 100 -c 10 {{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}}`