mirror of
https://github.com/http-party/node-http-proxy.git
synced 2025-12-08 20:59:18 +00:00
[misc] wrk drop the -r flag, now the benchmark use a test duration instead total requests to make
This commit is contained in:
parent
71ab6e51e4
commit
67a858a1f6
@ -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> <url>
|
||||
Options:
|
||||
-c, --connections <n> Connections to keep open
|
||||
-r, --requests <n> Total requests to make
|
||||
-t, --threads <n> Number of threads to use
|
||||
Usage: wrk <options> <url>
|
||||
Options:
|
||||
-c, --connections <N> Connections to keep open
|
||||
-d, --duration <T> Duration of test
|
||||
-t, --threads <N> Number of threads to use
|
||||
|
||||
-s, --script <S> Load Lua script file
|
||||
-H, --header <H> Add header to request
|
||||
--latency Print latency statistics
|
||||
--timeout <T> Socket/request timeout
|
||||
-v, --version Print version details
|
||||
|
||||
-H, --header <h> 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`
|
||||
3. **A wrk process:** `wrk -c 20 -d 60 -t 2 http://127.0.0.1:8000`
|
||||
Loading…
x
Reference in New Issue
Block a user