Skip to content

Docker image containing wrk2 with support for online Lua scripts

License

Notifications You must be signed in to change notification settings

syedhassaanahmed/wrk2-with-online-script

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 

Repository files navigation

wrk2-with-online-script

Docker Build Status MicroBadger Size Docker Pulls

Docker image containing the HTTP benchmaring tool wrk2 with support for online Lua scripts.

Example usage

docker run --rm -it -e "TARGET_URL=https://www.google.com" -e "WRK_HEADER=User-Agent: wrk" -e "SCRIPT_URL=https://<SERVER_URL>/script.lua" -e "WRK_OPTIONS=-t2 -c100 -d30s -R2000 --latency" syedhassaanahmed/wrk2-with-online-script

The above runs a benchmark for 30 seconds, using 2 threads, keeping 100 HTTP connections open, and a constant throughput of ~2000 requests per second (total, across all connections combined).

Here are some example Lua scripts for generating custom requests.

Credits

About

Docker image containing wrk2 with support for online Lua scripts

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages