Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/syedhassaanahmed/wrk2-with-online-script
Docker image containing wrk2 with support for online Lua scripts
https://github.com/syedhassaanahmed/wrk2-with-online-script
benchmark docker-image http-client lua-script throughput wrk
Last synced: 28 days ago
JSON representation
Docker image containing wrk2 with support for online Lua scripts
- Host: GitHub
- URL: https://github.com/syedhassaanahmed/wrk2-with-online-script
- Owner: syedhassaanahmed
- License: mit
- Created: 2017-12-11T00:28:50.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2019-04-27T19:58:59.000Z (almost 6 years ago)
- Last Synced: 2024-11-10T12:45:19.918Z (3 months ago)
- Topics: benchmark, docker-image, http-client, lua-script, throughput, wrk
- Language: Dockerfile
- Size: 3.91 KB
- Stars: 2
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# wrk2-with-online-script
[![Docker Build Status](https://img.shields.io/docker/cloud/build/syedhassaanahmed/wrk2-with-online-script.svg?logo=docker)](https://hub.docker.com/r/syedhassaanahmed/wrk2-with-online-script/builds/) [![MicroBadger Size](https://img.shields.io/microbadger/image-size/syedhassaanahmed/wrk2-with-online-script.svg?logo=docker)](https://hub.docker.com/r/syedhassaanahmed/wrk2-with-online-script/tags/) [![Docker Pulls](https://img.shields.io/docker/pulls/syedhassaanahmed/wrk2-with-online-script.svg?logo=docker)](https://hub.docker.com/r/syedhassaanahmed/wrk2-with-online-script/)Docker image containing the HTTP benchmaring tool [wrk2](https://github.com/giltene/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:///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](https://github.com/wg/wrk/tree/master/scripts) for generating custom requests.
## Credits
- **Will Glozer** for creating a modern HTTP benchmarking tool in `wrk`.
- **Gil Tene** for extending `wrk` to support constant throughput load.
- **Ville Rantala** for his [Docker image of wrk with online Lua scripts](https://hub.docker.com/r/vjrantal/wrk-with-online-script/~/dockerfile/) as well as an awesome tutorial on [Load testing with Azure Container Instances and wrk](https://blog.vjrantal.net/2017/08/10/load-testing-with-azure-container-instances-and-wrk/).