Skip to content

Commit

Permalink
[misc] wrk drop the -r flag, now the benchmark use a test duration in…
Browse files Browse the repository at this point in the history
…stead total requests to make
  • Loading branch information
cronopio committed Oct 17, 2013
1 parent 71ab6e5 commit 67a858a
Showing 1 changed file with 14 additions and 11 deletions.
25 changes: 14 additions & 11 deletions benchmark/README.md
Expand Up @@ -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
Expand All @@ -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`

0 comments on commit 67a858a

Please sign in to comment.