mirror of
https://github.com/tldr-pages/tldr.git
synced 2024-11-12 04:54:52 +03:00
80ab4215db
* wrk: fix typo * Update pages/common/wrk.md Co-Authored-By: Owen Voke <owzie123@gmail.com> Co-authored-by: Owen Voke <owzie123@gmail.com>
536 B
536 B
wrk
HTTP benchmarking tool. More information: https://github.com/wg/wrk.
- Run a benchmark for
30
seconds, using12
threads, and keeping400
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}}"