jgsqware / wrk-report

Export wrk data in Plot HTML report

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

wrk-report

Export wrk data in Plot HTML report

Currently working with hdrHistogram data generated by giltene/wrk2.

Installation

go get -u github.com/jgsqware/wrk-report

Usage

wrk -t2 -c5 -d3s --timeout 2s -R100 --latency http://myService | wrk-report > report.html

Multi-request with JSON

[
  {
    "path": "/path-1",
    "body": "some content",
    "method": "GET",
    "headers": {
      "X-Custom-Header-1": "test 1",
      "X-Custom-Header-2": "test 2"
    }
  },
  {
    "path": "/path-2",
    "body": "some content",
    "method": "POST",
    "headers": {
      "X-Custom-Header-1": "test 3",
      "X-Custom-Header-2": "test 4"
    }
  }
]
docker run --rm -e FILENAME=report.html -v `pwd`:/data jgsqware/wrk-report:latest bash -c 'wrk -t2 -c5 -d3s --timeout 2s -R100 -s /scripts/multi-request-json.lua --latency http://myService | wrk-report > /data/$FILENAME'

With docker

docker run --rm -e FILENAME=report.html -v `pwd`:/data jgsqware/wrk-report:latest bash -c 'wrk -t2 -c5 -d3s --timeout 2s -R100 --latency http://myService | wrk-report > /data/$FILENAME'

Upcoming

  • Parsing wrk result and generate report

About

Export wrk data in Plot HTML report


Languages

Language:Lua 64.4%Language:Go 35.6%