Use wrk benchmark tool to stress test a website

wrk is an HTTP benchmarking tool.

-- config.lua
wrk.headers["Cookie"] = "sessionid=123; foo=bar"
response = function(status, headers, body)
    for key, value in pairs(headers) do
        if key == "Location" then
            io.write("Location header found!\n")
$ ./wrk \
  --connections="1" \
  --duration="1m" \
  --script="config.lua" \
  --threads="1" \

Example wrk scripts:

Did this help you? Please let me know with a comment. Thank you
Posted .

Comments (RSS)

Leave a comment