1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-07-01 08:55:24 +02:00

wrk: add page (#2971)

This commit is contained in:
Ivan Aracki 2019-05-10 20:22:41 +02:00 committed by Starbeamrainbowlabs
parent 048864e658
commit d0d2eeced2

16
pages/common/wrk.md Normal file
View file

@ -0,0 +1,16 @@
# wrk
> HTTP benchmarking tool.
> Homepage: <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}}"`