mirror of
https://github.com/sharkdp/hyperfine.git
synced 2024-11-30 11:53:11 +03:00
6bfef81aaa
closes #392
18 lines
468 B
Markdown
18 lines
468 B
Markdown
This folder contains scripts that can be used in combination with hyperfines `--export-json` option.
|
|
|
|
### Example:
|
|
|
|
``` bash
|
|
> 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` and `matplotlib`. Install them via
|
|
your package manager or `pip`:
|
|
|
|
```bash
|
|
pip install numpy matplotlib # pip3, if you are using python3
|
|
```
|