mirror of
https://github.com/sharkdp/hyperfine.git
synced 2026-10-28 08:08:58 +00:00
Update scripts README
This commit is contained in:
1 parent
25409f6625
commit
134c04d328
1 file changed
+9
-11
+9
-11
@@ -1,19 +1,17 @@
|
||||
This folder contains scripts that can be used in combination with hyperfines `--export-json` option.
|
||||
|
||||
### Pre-requisites
|
||||
|
||||
To make theses scripts work, you will need matplotlib installed. Just execute the following commands:
|
||||
|
||||
```bash
|
||||
pip install matplotlib
|
||||
|
||||
# If you're using python 3
|
||||
pip3 install matplotlib
|
||||
```
|
||||
|
||||
### Example:
|
||||
|
||||
``` bash
|
||||
> hyperfine 'sleep 0.020' 'sleep 0.021' 'sleep 0.022' --export-json sleep.json
|
||||
> python plot_benchmark_results.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
|
||||
```
|
||||
Reference in new issue
Block a user