Skip to content
Myr

README.md

This file

Path

scripts/README.md

23 lines · 761 bytes · Markdown

Last changed by

Alternative performance metrics in the terminal (#986)David Peterbefore adoptionbdbfae9

History of this file

Take it

The walk stopped after 200 commits: lines older than 9859eca point at it.

Fix documentation typos and man-page formatting (#935)David Peterbefore adoption62cfbf0

line 1why, one step back
1This folder contains scripts that can be used in combination with hyperfine's `--export-json` option.

Always compute relative speed comprison for export, closes #642David Peterbefore adoption9859eca

lines 2–6why, one step back
2
3### Example:45```bash6hyperfine 'sleep 0.020' 'sleep 0.021' 'sleep 0.022' --export-json sleep.json

Document the Python version required by the analysis scripts (#944)David Peterbefore adoption8d908b0

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

Always compute relative speed comprison for export, closes #642David Peterbefore adoption9859eca

lines 8–9why, one step back
8```
9

Alternative performance metrics in the terminal (#986)David Peterbefore adoptionbdbfae9

line 10why, one step back
10All plotting and analysis scripts use the JSON export's `primary_metric` by default.

Support hardware counters in plotting scripts (#984)David Peterbefore adoptione262cd6

lines 11–15why, one step back
11
12```bash13uv run plot_histogram.py benchmark.json --metric instructions14```15

Fix documentation typos and man-page formatting (#935)David Peterbefore adoption62cfbf0

line 16why, one step back
16### Prerequisites

Always compute relative speed comprison for export, closes #642David Peterbefore adoption9859eca

line 17why, one step back
17

Document the Python version required by the analysis scripts (#944)David Peterbefore adoption8d908b0

lines 18–19why, one step back
18Install [`uv`](https://docs.astral.sh/uv/getting-started/installation/) and run the
19commands above from this directory.

Update docuDavid Peterbefore adoption5c716e4

line 20why, one step back
20

Document the Python version required by the analysis scripts (#944)David Peterbefore adoption8d908b0

lines 21–23why, one step back
21The scripts declare their dependencies using [PEP 723](https://peps.python.org/pep-0723/)
22inline script metadata. `uv run` automatically installs these dependencies in an23isolated environment before running the script.