README.md
This file
Path
scripts/README.md
33 lines · 1.2 KiB · Markdown
Last changed by
Make plotting scripts runnable with uvDavid Peterbefore adoptionce49529
History of this fileTake it
The walk stopped after 200 commits: lines older than 0f91d0c 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.Bump serde from 1.0.174 to 1.0.179dependabot[bot]before adoption0f91d0c
line 2why, one step back2Make plotting scripts runnable with uvDavid Peterbefore adoptionce49529
line 3why, one step back3### Run directly from GitHubBump serde from 1.0.174 to 1.0.179dependabot[bot]before adoption0f91d0c
line 4why, one step back4Make plotting scripts runnable with uvDavid Peterbefore adoptionce49529
lines 5–7why, one step back5Install [`uv`](https://docs.astral.sh/uv/getting-started/installation/), then6run one of the scripts:7Bump serde from 1.0.174 to 1.0.179dependabot[bot]before adoption0f91d0c
lines 8–9why, one step back8```bash9hyperfine 'sleep 0.020' 'sleep 0.021' 'sleep 0.022' --export-json sleep.jsonMake plotting scripts runnable with uvDavid Peterbefore adoptionce49529
lines 10–11why, one step back10uvx --from 'git+https://github.com/sharkdp/hyperfine' \11 plot_whisker sleep.jsonBump serde from 1.0.174 to 1.0.179dependabot[bot]before adoption0f91d0c
lines 12–13why, one step back12```13Make plotting scripts runnable with uvDavid Peterbefore adoptionce49529
line 14why, one step back14Replace `plot_whisker` with any of the following commands.Support hardware counters in plotting scripts (#984)David Peterbefore adoptione262cd6
line 15why, one step back15Make plotting scripts runnable with uvDavid Peterbefore adoptionce49529
lines 16–24why, one step back16| Command | Description |17| --- | --- |18| `plot_whisker` | Compare benchmarks with a box and whisker plot |19| `plot_histogram` | Show the distribution of measurements |20| `plot_parametrized` | Plot results from a parameter scan |21| `plot_progression` | Show measurements in run order |22| `plot_benchmark_comparison` | Compare commands across multiple JSON exports |23| `advanced_statistics` | Print additional statistics and percentiles |24| `welch_ttest` | Compare two benchmarks using Welch's t-test |Support hardware counters in plotting scripts (#984)David Peterbefore adoptione262cd6
line 25why, one step back25Make plotting scripts runnable with uvDavid Peterbefore adoptionce49529
lines 26–28why, one step back26By default, the plotting and analysis scripts use the metric that was selected27first in the actual hyperfine run (`--metrics` option).28Use `--metric` to select another metric:Bump serde from 1.0.174 to 1.0.179dependabot[bot]before adoption0f91d0c
line 29why, one step back29Make plotting scripts runnable with uvDavid Peterbefore adoptionce49529
lines 30–33why, one step back30```bash31uvx --from 'git+https://github.com/sharkdp/hyperfine' \32 plot_histogram benchmark.json --metric instructions33```