Compare commits

..
Author SHA1 Message Date
David Peter 9b97116caa Clarify that the default Unix shell is found through PATH 2026-10-02 11:29:15 +02:00
+2 -2
View File
@@ -89,7 +89,7 @@ hyperfine -L compiler gcc,clang '{compiler} -O2 main.cpp'
### Intermediate shell ### Intermediate shell
By default, commands are executed using a predefined shell (`/bin/sh` on Unix, `cmd.exe` on Windows). By default, commands are executed using `sh` on Unix (resolved through `PATH`) or `cmd.exe` on Windows.
If you want to use a different shell, you can use the `-S, --shell <SHELL>` option: If you want to use a different shell, you can use the `-S, --shell <SHELL>` option:
```sh ```sh
hyperfine --shell zsh 'for i in {1..10000}; do echo test; done' hyperfine --shell zsh 'for i in {1..10000}; do echo test; done'
@@ -104,7 +104,7 @@ If you want to run a benchmark *without an intermediate shell*, you can use the
option. This is helpful for very fast commands (< 5 ms) where the shell startup overhead correction would option. This is helpful for very fast commands (< 5 ms) where the shell startup overhead correction would
produce a significant amount of noise. Note that you cannot use shell syntax like `*` or `~` in this case. produce a significant amount of noise. Note that you cannot use shell syntax like `*` or `~` in this case.
``` ```
hyperfine -N 'grep -R TODO /home/user' hyperfine -N 'grep TODO /home/user'
``` ```