Skip to content

Commit 4947484

Browse files
committed
Update README.md for benchmarks
Remove number of requests flag from `wrk` as it no longer exists. Swapped out for 5 minute duration.
1 parent c54278b commit 4947484

File tree

1 file changed

+10
-6
lines changed

1 file changed

+10
-6
lines changed

benchmark/README.md

+10-6
Original file line numberDiff line numberDiff line change
@@ -10,14 +10,18 @@ All benchmarking shall be done with [wrk](https://github.com/wg/wrk) which _is t
1010
$ wrk
1111
Usage: wrk <options> <url>
1212
Options:
13-
-c, --connections <n> Connections to keep open
14-
-r, --requests <n> Total requests to make
15-
-t, --threads <n> Number of threads to use
13+
-c, --connections <N> Connections to keep open
14+
-d, --duration <T> Duration of test
15+
-t, --threads <N> Number of threads to use
1616
17-
-H, --header <h> Add header to request
17+
-s, --script <S> Load Lua script file
18+
-H, --header <H> Add header to request
19+
--latency Print latency statistics
20+
--timeout <T> Socket/request timeout
1821
-v, --version Print version details
1922
20-
Numeric arguments may include a SI unit (2k, 2M, 2G)
23+
Numeric arguments may include a SI unit (1k, 1M, 1G)
24+
Time arguments may include a time unit (2s, 2m, 2h)
2125
```
2226

2327
## Benchmarks
@@ -30,4 +34,4 @@ _This benchmark requires three terminals running:_
3034

3135
1. **A proxy server:** `node benchmark/scripts/proxy.js`
3236
2. **A target server:** `node benchmark/scripts/hello.js`
33-
3. **A wrk process:** `wrk -c 20 -r 10000 -t 2 http://127.0.0.1:8000`
37+
3. **A wrk process:** `wrk -c 20 -d5m -t 2 http://127.0.0.1:8000`

0 commit comments

Comments
 (0)