Re: [PATCH/RFC 3/6] commit-reach: terminate merge-base walk when one paint side is exhausted
- From
Derrick Stolee <stolee@gmail.com>
- Date
- Jun 22, 2026, 20:26 UTC
- Message-ID
- <4f9cae3c-5cef-420b-954b-d1981d9d5a67@gmail.com>
- In-Reply-To
- <CAL71e4NJZ9c_=0W4djRFCYPw4z_dkh_ZHEDWBk8cuwXhxT9jgw@mail.gmail.com>
On 6/22/2026 3:19 PM, Kristofer Karlsson wrote:
> I think I may need to create some type of (temporary, internal) > test runner that runs the same walk multiple times to reduce > the noise from parsing commits.
I've used hyperfine [1] when doing specific performance tests in the past. You can build Git before and after and have hyperfine run the two modes and compare them:
hyperfine --warmup=3 \ -n 'old' "~/git-old/bin-wrappers/git -C $repo merge-base $A $B" \ -n 'new' "~/git-new/bin-wrappers/git -C $repo merge-base $A $B"
[1] https://github.com/sharkdp/hyperfine
Good luck! -Stolee