2018-12-12 22:30:19 +03:00
|
|
|
This folder contains scripts that can be used in combination with hyperfines `--export-json` option.
|
|
|
|
|
|
|
|
### Example:
|
|
|
|
|
2022-05-20 02:54:31 +03:00
|
|
|
```bash
|
|
|
|
hyperfine 'sleep 0.020' 'sleep 0.021' 'sleep 0.022' --export-json sleep.json
|
|
|
|
python plot_whisker.py sleep.json
|
2018-12-12 22:30:19 +03:00
|
|
|
```
|
2019-10-06 22:29:37 +03:00
|
|
|
|
|
|
|
### Pre-requisites
|
|
|
|
|
2022-03-02 17:02:50 +03:00
|
|
|
To make these scripts work, you will need to install `numpy`, `matplotlib` and `scipy`. Install them via
|
2019-10-06 22:29:37 +03:00
|
|
|
your package manager or `pip`:
|
|
|
|
|
|
|
|
```bash
|
2022-03-02 17:02:50 +03:00
|
|
|
pip install numpy matplotlib scipy # pip3, if you are using python3
|
2019-10-06 22:29:37 +03:00
|
|
|
```
|