Update README
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 3395914 · Browse files · 1 file·+15 added−15 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−15 removed
- other:+15 added−15 removed
Provenance
- Commit
52cbac4- Tree
3c6bfb3- Author
David Peter <sharkdp@users.noreply.github.com>- Committer
GitHub <noreply@github.com>- Parent
3395914
1 file changed+15 added−15 removed
modified:README.md+15 added-15 removed
16 unmodified lines171819202122232122232425262748 unmodified lines7677787980818283848081828384858687888990919293949596979192939416 unmodified lines11111211311411511611711811912012112212312412527 unmodified lines16 unmodified lines* Support for arbitrary shell commands.* Constant feedback about the benchmark progress and current estimates.* Warmup runs can be executed before the actual benchmark.* Cache-clearing commands can be set up before each timing run.* Statistical outlier detection.* Export results to various formats: CSV, JSON, Markdown.* Parameterized benchmarks.* Statistical outlier detection to detect interference from other programs and caching effects.* Export results to various formats: CSV, JSON, Markdown, AsciiDoc.* Parameterized benchmarks (e.g. vary the number of threads).* Cross-platform
## Usage
48 unmodified linesHyperfine has multiple options for exporting benchmark results: CSV, JSON, Markdown (see `--help`text for details). To export results to Markdown, for example, you can use the `--export-markdown`option that will create tables like this:
| Command | Mean [ms] | Min…Max [ms] ||:---|---:|---:|| `find . -iregex '.*[0-9]\.jpg$'` | 506.0 ± 8.1 | 495.4…518.6 || `find . -iname '*[0-9].jpg'` | 304.9 ± 3.1 | 299.8…309.3 || `fd -HI '.*[0-9]\.jpg$'` | 66.2 ± 5.8 | 62.5…86.3 || Command | Mean [s] | Min [s] | Max [s] | Relative ||:---|---:|---:|---:|---:|| `find . -iregex '.*[0-9]\.jpg$'` | 2.395 ± 0.033 | 2.355 | 2.470 | 7.7 || `find . -iname '*[0-9].jpg'` | 1.416 ± 0.029 | 1.389 | 1.494 | 4.6 || `fd -HI '.*[0-9]\.jpg$'` | 0.309 ± 0.005 | 0.305 | 0.320 | 1.0 |
The JSON output is useful if you want to analyze the benchmark results in more detail. See the[`scripts/`](https://github.com/sharkdp/hyperfine/tree/master/scripts) folder for some examples.
## Installation
### On macOS
Hyperfine can be installed via [Homebrew](https://brew.sh):```brew install hyperfine```
### On Ubuntu
Download the appropriate `.deb` package from the [Release page](https://github.com/sharkdp/hyperfine/releases)and install it via `dpkg`:16 unmodified lines```xbps-install -S hyperfine```
### On macOS
Hyperfine can be installed via [Homebrew](https://brew.sh):```brew install hyperfine```
### With conda

27 unmodified lines