Skip to content
Myr

Update README.md

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by David Peter · committed by GitHub · parent 02157eb · Browse files · 1 file+15 added−6 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+15 added−6 removed

  • other:+15 added−6 removed

1 file+15 added−6 removed

modified:README.md+15 added-6 removed
126 unmodified lines
127hyperfine 'source /tmp/my_function.sh; eval my_function'128hyperfine 'source /tmp/my_alias.sh; eval my_alias'129```130131### Export results131### Exporting results132133Hyperfine has multiple options for exporting benchmark results: CSV, JSON, Markdown (see `--help`134text for details). To export results to Markdown, for example, you can use the `--export-markdown`135option that will create tables like this:133Hyperfine has multiple options for exporting benchmark results to CSV, JSON, Markdown and other134formats (see `--help` text for details).135136#### Markdown 137138You can use the `--export-markdown <file>` option to create tables like the following:139140| Command | Mean [s] | Min [s] | Max [s] | Relative |141|:---|---:|---:|---:|---:|142| `find . -iregex '.*[0-9]\.jpg$'` | 2.275 ± 0.046 | 2.243 | 2.397 | 9.79 ± 0.22 |143| `find . -iname '*[0-9].jpg'` | 1.427 ± 0.026 | 1.405 | 1.468 | 6.14 ± 0.13 |144| `fd -HI '.*[0-9]\.jpg$'` | 0.232 ± 0.002 | 0.230 | 0.236 | 1.00 |145143The JSON output is useful if you want to analyze the benchmark results in more detail. See the144[`scripts/`](https://github.com/sharkdp/hyperfine/tree/master/scripts) folder for some examples.146#### JSON147148The JSON output is useful if you want to analyze the benchmark results in more detail. The149[`scripts/`](https://github.com/sharkdp/hyperfine/tree/master/scripts) folder includes a lot150of helpful Python programs to further analyze benchmark results and create helpful151visualizations, like a histogram of runtimes:152153![](doc/histogram.png)154155## Installation156157[![Packaging status](https://repology.org/badge/vertical-allrepos/hyperfine.svg)](https://repology.org/project/hyperfine/versions)158
122 unmodified lines