Export wrk data in Plot HTML report
Currently working with hdrHistogram data generated by giltene/wrk2.
go get -u github.com/jgsqware/wrk-report
wrk -t2 -c5 -d3s --timeout 2s -R100 --latency http://myService | wrk-report > report.html
[
{
"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'
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'
- Parsing wrk result and generate report