Skip to content
Myr

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 file

Take 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 back
1This 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 back
2

Make plotting scripts runnable with uvDavid Peterbefore adoptionce49529

line 3why, one step back
3### Run directly from GitHub

Bump serde from 1.0.174 to 1.0.179dependabot[bot]before adoption0f91d0c

line 4why, one step back
4

Make plotting scripts runnable with uvDavid Peterbefore adoptionce49529

lines 5–7why, one step back
5Install [`uv`](https://docs.astral.sh/uv/getting-started/installation/), then
6run one of the scripts:7

Bump serde from 1.0.174 to 1.0.179dependabot[bot]before adoption0f91d0c

lines 8–9why, one step back
8```bash
9hyperfine 'sleep 0.020' 'sleep 0.021' 'sleep 0.022' --export-json sleep.json

Make plotting scripts runnable with uvDavid Peterbefore adoptionce49529

lines 10–11why, one step back
10uvx --from 'git+https://github.com/sharkdp/hyperfine' \
11 plot_whisker sleep.json

Bump serde from 1.0.174 to 1.0.179dependabot[bot]before adoption0f91d0c

lines 12–13why, one step back
12```
13

Make plotting scripts runnable with uvDavid Peterbefore adoptionce49529

line 14why, one step back
14Replace `plot_whisker` with any of the following commands.

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

line 15why, one step back
15

Make plotting scripts runnable with uvDavid Peterbefore adoptionce49529

lines 16–24why, one step back
16| 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 back
25

Make plotting scripts runnable with uvDavid Peterbefore adoptionce49529

lines 26–28why, one step back
26By default, the plotting and analysis scripts use the metric that was selected
27first 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 back
29

Make plotting scripts runnable with uvDavid Peterbefore adoptionce49529

lines 30–33why, one step back
30```bash
31uvx --from 'git+https://github.com/sharkdp/hyperfine' \32 plot_histogram benchmark.json --metric instructions33```