mirror of
https://github.com/sharkdp/hyperfine.git
synced 2026-10-28 08:08:58 +00:00
Merge pull request #900 from ded-furby/docs/hyperfine-iteration-readme
docs: mention HYPERFINE_ITERATION in README
This commit is contained in:
1 file changed
+6
@@ -98,6 +98,12 @@ hyperfine \
|
||||
'python main.py'
|
||||
```
|
||||
|
||||
If you need a unique value for each individual run of a benchmark command, hyperfine also exposes
|
||||
the zero-based `$HYPERFINE_ITERATION` environment variable inside the benchmarked command itself:
|
||||
```sh
|
||||
hyperfine 'my-command > output-${HYPERFINE_ITERATION}.log'
|
||||
```
|
||||
|
||||
### Intermediate shell
|
||||
|
||||
By default, commands are executed using `sh` on Unix (resolved through `PATH`) or `cmd.exe` on Windows.
|
||||
|
||||
Reference in new issue
Block a user