+
Skip to content
/ wrk Public

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

License

Notifications You must be signed in to change notification settings

elswork/wrk

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

Website GitHub Docker Hub
Deft.Work my personal blog wrk wrk
Docker Pulls Docker Stars Size Sponsors
Docker pulls Docker stars Docker Image size GitHub 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 Sponsors Donate PayPal

About

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

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors 2

  •  
  •  
点击 这是indexloc提供的php浏览器服务,不要输入任何密码和下载