From d0d2eeced2fc47a23a5bd7b482b06021e8fd3feb Mon Sep 17 00:00:00 2001 From: Ivan Aracki Date: Fri, 10 May 2019 20:22:41 +0200 Subject: [PATCH] wrk: add page (#2971) --- pages/common/wrk.md | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 pages/common/wrk.md diff --git a/pages/common/wrk.md b/pages/common/wrk.md new file mode 100644 index 000000000..423b23ccc --- /dev/null +++ b/pages/common/wrk.md @@ -0,0 +1,16 @@ +# wrk + +> HTTP benchmarking tool. +> Homepage: . + +- 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}}"`