Skip to content
Myr

README.md

This file

Path

scripts/README.md

26 lines · 800 bytes · Markdown

Last changed by

Minor rewordingDavid Peterbefore adoptione3e8617

History of this file

Take it

The walk stopped after 200 commits: lines older than 2045e97 point at it.

Correct default of the --time-unit option in help textEngineer-of-Efficiencybefore adoption2045e97

lines 1–6why, one step back
1This folder contains scripts that can be used in combination with hyperfines `--export-json` option.
23### Example:45```bash6hyperfine 'sleep 0.020' 'sleep 0.021' 'sleep 0.022' --export-json sleep.json

Update docuDavid Peterbefore adoption5c716e4

line 7why, one step back
7./plot_whisker.py sleep.json

Correct default of the --time-unit option in help textEngineer-of-Efficiencybefore adoption2045e97

lines 8–11why, one step back
8```
910### Pre-requisites11

Minor rewordingDavid Peterbefore adoptione3e8617

line 12why, one step back
12To make these scripts work, you will need `numpy`, `matplotlib` and `scipy`.

Update docuDavid Peterbefore adoption5c716e4

lines 13–22why, one step back
13
14If you have a Python package manager that understands [PEP-723](https://peps.python.org/pep-0723/)15inline script requirements like [`uv`](https://github.com/astral-sh/uv) or [`pipx`](https://github.com/pypa/pipx),16you can directly run the scripts using1718```bash19uv run plot_whisker.py sleep.json20```2122Otherwise, install the dependencies via your system package manager or using `pip`:

Correct default of the --time-unit option in help textEngineer-of-Efficiencybefore adoption2045e97

lines 23–26why, one step back
23
24```bash25pip install numpy matplotlib scipy # pip3, if you are using python326```