Skip to content
Myr

docs: simplify branch comparison example

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

authored by David Peter · committed by David Peter · parent c974f9b · Browse files · 1 file+1 added−6 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+1 added−6 removed

  • other:+1 added−6 removed

1 file+1 added−6 removed

modified:README.md+1 added-6 removed
93 unmodified lines
94```sh95hyperfine \96 --parameter-list branch main,performance-improvements \97 --setup 'git switch {branch}' \98 'rails runner true'98 'python main.py'99```100101Make sure your working tree is clean before switching branches. Because this `--setup` command102changes the checkout, the repository will remain on the last branch from `--parameter-list`103after the benchmark finishes. If you want to benchmark uncommitted changes, consider using104`git worktree` and benchmarking the same command in each worktree instead.105101### Intermediate shell102103By default, commands are executed using `sh` on Unix (resolved through `PATH`) or `cmd.exe` on Windows.104If you want to use a different shell, you can use the `-S, --shell <SHELL>` option:
244 unmodified lines