wrk

HTTP benchmarking tool. More information: <https://github.com/wg/wrk>.

Install

All systems
curl cmd.cat/wrk.sh
Debian Debian
apt-get install wrk
Ubuntu
apt-get install wrk
Alpine
apk add wrk
Windows (WSL2)
sudo apt-get update sudo apt-get install wrk
OS X
brew install wrk
Raspbian
apt-get install wrk
Docker
docker run cmd.cat/wrk wrk powered by Commando

HTTP benchmarking tool. More information: <https://github.com/wg/wrk>.

  • Run a benchmark for `30` seconds, using `12` threads, and keeping `400` HTTP connections open:
    wrk -t12 -c400 -d30s "http://127.0.0.1:8080/index.html"
  • Run a benchmark with a custom header:
    wrk -t2 -c5 -d5s -H "Host: example.com" "http://example.com/index.html"
  • Run a benchmark with a request timeout of `2` seconds:
    wrk -t2 -c5 -d5s --timeout 2s "http://example.com/index.html"

© tl;dr; authors and contributors