一个简单的hdrhistogram绘图脚本。
hdr-plot的Python项目详细描述
hdrhistogram的hdr图
用于https://github.com/giltene/wrk2和 https://github.com/HdrHistogram/HdrHistogram。
这只是一个简单快捷的脚本,可以快速绘制
直接从wkr2
基准输出的hdrhistograms。
例如:
如何运行
用法:
usage: hdr-plot.py [-h] [--output OUTPUT] [--title TITLE] [--nobox] files [files ...]
要运行,需要安装几个软件包:
安装python3
pip3安装--用户pandas matplotlib
然后使用-L
选项运行wrk
,并将输出存储到文件中,如:
wrk -t2 -c100 -d30s -R2000 -L http://127.0.0.1:8080/index.html &> result.out
最后绘制百分比分布:
./hdr-plot.py --output myplot.png --title "My plot" ./result.out [...]
您可以提供更多要绘制在同一图形上的文件:
./hdr-plot.py --output myplot.png --title "My plot" ./sample/file1.out ./sample/file2.out ./sample/file3.out
许可证
版权所有©2018 Bruno Bonacci-根据Apache License v 2.0
分发