elswork/wrk

By elswork

Updated 10 months ago

A Docker file to build WRK a HTTP benchmarking tool capable of generating significant load

Image

3.1K

Wrk

A Docker file to build wrk a HTTP benchmarking tool capable of generating significant load when run on a single multi-core CPU.

Be aware! You should read carefully the usage documentation of every tool!

Thanks to

Details

Docker PullsDocker StarsSizeSponsors
Docker pullsDocker starsDocker Image sizeGitHub Sponsors

Compatible Architectures

This image has been builded using buildx for these architectures:

  • amd64 arm64

Usage Example

Benchmark
docker run --rm elswork/wrk \
-t4 -c10 -d30s https://www.theworldsworstwebsiteever.com/

or

make start PARAM=" -t4 -c10 -d30s https://www.theworldsworstwebsiteever.com/"

OPTIONALLY you can use these parameters before site URL: -c, --connections: total number of HTTP connections to keep open with each thread handling N = connections/threads

-d, --duration:    duration of the test, e.g. 2s, 2m, 2h

-t, --threads:     total number of threads to use

-s, --script:      LuaJIT script, see SCRIPTING

-H, --header:      HTTP header to add to request, e.g. "User-Agent: wrk"

    --latency:     print detailed latency statistics

    --timeout:     record a timeout if a response is not received within
                   this amount of time.
LuaJIT Script
docker run --rm -v ${CURDIR}/scripts/:/data \
 elswork/wrk -s delay.lua https://www.theworldsworstwebsiteever.com/

or

make script PARAM=" -s delay.lua https://www.theworldsworstwebsiteever.com/"

You can user your own LuaJIT script writting it in /scripts/ folder where you'll find some examples.

Sponsor me! Together we will be unstoppable.

Other ways to fund me:

GitHub SponsorsDonate PayPal

Docker Pull Command

docker pull elswork/wrk