20.03.2020 Autor Mike 0 0

wrk

wrk can be used for simple http benchmarking. It can generate a significant amount of load. You can find it under https://github.com/wg/wrk

A simple call looks like this:

wrk -t12 -c400 -d30s http://www.lvh.me:8080

This will call the page for 30 seconds with 12 threads and 400 open connections. Afterwords you get statistical output like

Running 30s test @ http://www.lvh.me:8080
    12 threads and 400 connections
    Thread Stats   Avg      Stdev     Max   +/- Stdev
        Latency   995.24ms  479.63ms   2.00s    60.47%
        Req/Sec    25.35     14.38   101.00     52.11%
    8492 requests in 30.09s, 674.80MB read
    Socket errors: connect 0, read 0, write 0, timeout 1617
Requests/sec:    282.21
Transfer/sec:     22.43MB