Skip to main content
Join the official 2019 Python Developers SurveyStart the survey!

A simple HdrHistogram plotting script.

Project description

hdr-plot for HdrHistogram

A standalone plotting script for https://github.com/giltene/wrk2 and https://github.com/HdrHistogram/HdrHistogram.

This is just a quick and unsophisticated script to quickly plot the HdrHistograms directly from the output of wkr2 benchmarks.

For example:

myplot.png

how to run

usage:

usage: hdr-plot.py [-h] [--output OUTPUT] [--title TITLE] [--nobox] files [files ...]

To run need a few packages to be installed:

  • install python3

    pip3 install --user pandas matplotlib

Then run wrk with the -L option and store the output into a file, like:

wrk -t2 -c100 -d30s -R2000 -L http://127.0.0.1:8080/index.html &> result.out

Finally plot the percentile distribution:

./hdr-plot.py --output myplot.png --title "My plot" ./result.out [...]

You can provide more files to be plotted on the same graph:

./hdr-plot.py --output myplot.png --title "My plot" ./sample/file1.out ./sample/file2.out ./sample/file3.out

License

Copyright © 2018 Bruno Bonacci - Distributed under the Apache License v 2.0

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for hdr-plot, version 0.2.0
Filename, size File type Python version Upload date Hashes
Filename, size hdr_plot-0.2.0-py3-none-any.whl (4.3 kB) File type Wheel Python version py3 Upload date Hashes View hashes
Filename, size hdr-plot-0.2.0.tar.gz (3.3 kB) File type Source Python version None Upload date Hashes View hashes

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page