From 4947484806f839d5e0a1b615b56a1bc847b8f534 Mon Sep 17 00:00:00 2001 From: Brett Kochendorfer Date: Sun, 20 Apr 2014 20:34:08 -0500 Subject: [PATCH] Update README.md for benchmarks Remove number of requests flag from `wrk` as it no longer exists. Swapped out for 5 minute duration. --- benchmark/README.md | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) diff --git a/benchmark/README.md b/benchmark/README.md index 2a852d14e..e48e18e02 100644 --- a/benchmark/README.md +++ b/benchmark/README.md @@ -10,14 +10,18 @@ All benchmarking shall be done with [wrk](https://github.com/wg/wrk) which _is t $ wrk Usage: wrk Options: - -c, --connections Connections to keep open - -r, --requests Total requests to make - -t, --threads Number of threads to use + -c, --connections Connections to keep open + -d, --duration Duration of test + -t, --threads Number of threads to use - -H, --header Add header to request + -s, --script Load Lua script file + -H, --header Add header to request + --latency Print latency statistics + --timeout Socket/request timeout -v, --version Print version details - Numeric arguments may include a SI unit (2k, 2M, 2G) + Numeric arguments may include a SI unit (1k, 1M, 1G) + Time arguments may include a time unit (2s, 2m, 2h) ``` ## Benchmarks @@ -30,4 +34,4 @@ _This benchmark requires three terminals running:_ 1. **A proxy server:** `node benchmark/scripts/proxy.js` 2. **A target server:** `node benchmark/scripts/hello.js` -3. **A wrk process:** `wrk -c 20 -r 10000 -t 2 http://127.0.0.1:8000` \ No newline at end of file +3. **A wrk process:** `wrk -c 20 -d5m -t 2 http://127.0.0.1:8000`