diff --git a/benchmark/README.md b/benchmark/README.md index 2a852d1..fd32f77 100644 --- a/benchmark/README.md +++ b/benchmark/README.md @@ -7,17 +7,20 @@ The long-term goal of these scripts and documentation is to provide a consistent All benchmarking shall be done with [wrk](https://github.com/wg/wrk) which _is the same tool used for performance testing by the node.js core team._ **Make sure you have `wrk` installed before continuing**. ``` -$ wrk -Usage: wrk - Options: - -c, --connections Connections to keep open - -r, --requests Total requests to make - -t, --threads Number of threads to use +Usage: wrk + Options: + -c, --connections Connections to keep open + -d, --duration Duration of test + -t, --threads Number of threads to use + + -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 - -H, --header Add header to request - -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 +33,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 -d 60 -t 2 http://127.0.0.1:8000` \ No newline at end of file