Sodamhan.com

TL;DR

wrk

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"

This document was created using the contents of the tldr project.