https://github.com/ruslanys/docker-wrk
Wrk wrapped into Docker image
https://github.com/ruslanys/docker-wrk
alpine docker docker-image ubuntu wrk
Last synced: about 1 month ago
JSON representation
Wrk wrapped into Docker image
- Host: GitHub
- URL: https://github.com/ruslanys/docker-wrk
- Owner: ruslanys
- License: mit
- Created: 2018-12-13T14:07:58.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2024-04-23T13:23:13.000Z (about 2 years ago)
- Last Synced: 2025-02-11T12:41:37.744Z (over 1 year ago)
- Topics: alpine, docker, docker-image, ubuntu, wrk
- Language: Dockerfile
- Homepage: https://hub.docker.com/r/ruslanys/wrk/
- Size: 20.5 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
Awesome Lists containing this project
README
# wrk Docker image
[](https://hub.docker.com/r/ruslanys/wrk/)
[](https://hub.docker.com/r/ruslanys/wrk/)
## Images
### Ubuntu
* `ruslanys/wrk:latest`
* `ruslanys/wrk:ubuntu`
### Alpine
* `ruslanys/wrk:alpine`
### Debian
* `ruslanys/wrk:debian`
## Usage
```
$ docker run --rm -it ruslanys/wrk -t12 -c400 -d10s https://hub.docker.com/
```
## [wrk](https://github.com/wg/wrk) - a HTTP benchmarking tool
wrk is a modern HTTP benchmarking tool capable of generating significant
load when run on a single multi-core CPU. It combines a multithreaded
design with scalable event notification systems such as epoll and kqueue.
### Basic Usage
```
wrk -t12 -c400 -d30s http://127.0.0.1:8080/index.html
```
This runs a benchmark for 30 seconds, using 12 threads, and keeping
400 HTTP connections open.
Output:
```
Running 30s test @ http://127.0.0.1:8080/index.html
12 threads and 400 connections
Thread Stats Avg Stdev Max +/- Stdev
Latency 635.91us 0.89ms 12.92ms 93.69%
Req/Sec 56.20k 8.07k 62.00k 86.54%
22464657 requests in 30.00s, 17.76GB read
Requests/sec: 748868.53
Transfer/sec: 606.33MB
```
### Command Line Options
```
-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.
```