Skip to content
Myr

Merge pull request #900 from ded-furby/docs/hyperfine-iteration-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 · parents a6c3010, 0d6ade9 · Browse files · 1 file+6 added−0 removed
This commit

State

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

Trailers

  • docs: mention HYPERFINE_ITERATION in README

Diff stats

1 file+6 added−0 removed

  • other:+6 added−0 removed

1 file+6 added−0 removed

modified:README.md+6 added
96 unmodified lines
97 --setup 'git switch {branch}' \98 'python main.py'99```100101If you need a unique value for each individual run of a benchmark command, hyperfine also exposes102the zero-based `$HYPERFINE_ITERATION` environment variable inside the benchmarked command itself:103```sh104hyperfine 'my-command > output-${HYPERFINE_ITERATION}.log'105```106107### Intermediate shell108109By default, commands are executed using `sh` on Unix (resolved through `PATH`) or `cmd.exe` on Windows.110If you want to use a different shell, you can use the `-S, --shell <SHELL>` option:
244 unmodified lines