ab: add CSV example and update pt_BR translation (#11931)

* ab: add CSV example

* ab: update pt_BR translation

* ab: leave values as part of the commands
This commit is contained in:
Vitor Henrique
2023-12-31 04:18:26 -03:00
committed by GitHub
parent 8810d911fe
commit c5508a288e
15 changed files with 56 additions and 44 deletions

View File

@@ -5,15 +5,15 @@
- Execute 100 HTTP GET requests to a given URL:
`ab -n {{100}} {{url}}`
`ab -n 100 {{url}}`
- Execute 100 HTTP GET requests, in concurrent batches of 10, to a URL:
`ab -n {{100}} -c {{10}} {{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}}`
`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:
@@ -22,3 +22,7 @@
- Set the maximum number of seconds ([t]imeout) to spend for benchmarking:
`ab -t {{60}} {{url}}`
- Write the results to a CSV file:
`ab -e {{path/to/file.csv}}`