Skip to content

jizhouli/wrk-report

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Lua 64.4%
  • Go 35.6%