Update cheatsheets

This commit is contained in:
ivuorinen
2024-02-21 11:19:49 +00:00
parent 4e88a1b42f
commit 3d653cc7e6
4803 changed files with 127002 additions and 0 deletions

21
wrk Normal file
View File

@@ -0,0 +1,21 @@
---
syntax: markdown
tags: [tldr, common]
source: https://github.com/tldr-pages/tldr.git
---
# wrk
> HTTP benchmarking tool.
> More information: <https://github.com/wg/wrk>.
- Run a benchmark for `30` seconds, using `12` threads, and keeping `400` HTTP connections open:
`wrk -t{{12}} -c{{400}} -d{{30s}} "{{http://127.0.0.1:8080/index.html}}"`
- Run a benchmark with a custom header:
`wrk -t{{2}} -c{{5}} -d{{5s}} -H "{{Host: example.com}}""{{http://example.com/index.html}}"`
- Run a benchmark with a request timeout of `2` seconds:
`wrk -t{{2}} -c{{5}} -d{{5s}} --timeout {{2s}} "{{http://example.com/index.html}}"`