Skip to content
Myr

docs: mention HYPERFINE_ITERATION in README

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

authored by ded-furby · committed by ded-furby · parent f12f3d9 · 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.

Diff stats

1 file+6 added−0 removed

  • other:+6 added−0 removed

1 file+6 added−0 removed

modified:README.md+6 added
85 unmodified lines
86```87hyperfine -L compiler gcc,clang '{compiler} -O2 main.cpp'88```8990If you need a unique value for each individual run of a benchmark command, hyperfine also exposes91the zero-based `$HYPERFINE_ITERATION` environment variable inside the benchmarked command itself:92```sh93hyperfine 'my-command > output-${HYPERFINE_ITERATION}.log'94```9596### Intermediate shell9798By default, commands are executed using a predefined shell (`/bin/sh` on Unix, `cmd.exe` on Windows).99If you want to use a different shell, you can use the `-S, --shell <SHELL>` option:
254 unmodified lines