mirror of
https://github.com/sharkdp/hyperfine.git
synced 2026-10-29 00:28:57 +00:00
* add: legend modification parameters and output DPI This commit adds a CLI parameter to plot_histogram in order to position the legend of the plot on the diagram. It also defines the output DPI for the plot to 600 dpi. Plot_progression gets a CLI paramter to add a custom label and to overwrite the default one. --------- Co-authored-by: dbv <jt@dbv03.linpro.no> Co-authored-by: dbv <spreadcat.github@micronarrativ.org>
This folder contains scripts that can be used in combination with hyperfines --export-json option.
Example:
hyperfine 'sleep 0.020' 'sleep 0.021' 'sleep 0.022' --export-json sleep.json
python plot_whisker.py sleep.json
Pre-requisites
To make these scripts work, you will need to install numpy, matplotlib and scipy. Install them via
your package manager or pip:
pip install numpy matplotlib scipy # pip3, if you are using python3