Move pages under tldr, lint run.sh, update docs

This commit is contained in:
2024-02-21 13:58:43 +02:00
parent 3d653cc7e6
commit 2c475fa62d
4806 changed files with 36 additions and 35 deletions

33
tldr/ab Normal file
View File

@@ -0,0 +1,33 @@
---
syntax: markdown
tags: [tldr, common]
source: https://github.com/tldr-pages/tldr.git
---
# 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 (30 by default):
`ab -t {{60}} {{url}}`
- Write the results to a CSV file:
`ab -e {{path/to/file.csv}}`