Git Product home page Git Product logo

wrk2-docker's Introduction

wrk2-docker

This image contains the giltene/wrk2 CLI tool for performance testing. I have created this image as the other wrk2 images I found are far bigger than they need to be (most were ~200MB). This image contains only the things that you actually need to run wrk2, so is quite small at ~6MB.

Usage

This image is built from master and accessible on dockerhub at haydenjeune/wrk2. To pull:

docker pull haydenjeune/wrk2:latest

The entrypoint for this image is the wrk2 binary.

To run tests with 1 thread, 5 connections, 10 requests per second, for 15s, with a request defined in request.lua (as below)

$ cat request.lua
wrk.method = "POST"
wrk.body   = '{ ... some request JSON }'
wrk.headers["Content-Type"] = "application/json"
docker run -rm -v "$(pwd)"/request.lua:/data/request.lua haydenjeune/wrk2:latest -t1 -L -c5 -R10 -d15s -s /data/request.lua http://localhost/your_request_endpoint

Note that the request.lua file is mounted inside the /data directory of the container via bind mount.

wrk2-docker's People

Contributors

haydenjeune avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.