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 fileTake 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 back1This 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 back23### Example:45```bash6hyperfine 'sleep 0.020' 'sleep 0.021' 'sleep 0.022' --export-json sleep.jsonDocument the Python version required by the analysis scripts (#944)David Peterbefore adoption8d908b0
line 7why, one step back7uv run plot_whisker.py sleep.jsonAlways compute relative speed comprison for export, closes #642David Peterbefore adoption9859eca
lines 8–9why, one step back8```9Alternative performance metrics in the terminal (#986)David Peterbefore adoptionbdbfae9
line 10why, one step back10All 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 back1112```bash13uv run plot_histogram.py benchmark.json --metric instructions14```15Fix documentation typos and man-page formatting (#935)David Peterbefore adoption62cfbf0
line 16why, one step back16### PrerequisitesAlways compute relative speed comprison for export, closes #642David Peterbefore adoption9859eca
line 17why, one step back17Document the Python version required by the analysis scripts (#944)David Peterbefore adoption8d908b0
lines 18–19why, one step back18Install [`uv`](https://docs.astral.sh/uv/getting-started/installation/) and run the19commands above from this directory.Update docuDavid Peterbefore adoption5c716e4
line 20why, one step back20Document the Python version required by the analysis scripts (#944)David Peterbefore adoption8d908b0
lines 21–23why, one step back21The 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.