From: Kristofer Karlsson Date: Mon, 22 Jun 2026 21:03:03 GMT Subject: Re: [PATCH/RFC 3/6] commit-reach: terminate merge-base walk when one paint side is exhausted Message-ID: In-Reply-To: <4f9cae3c-5cef-420b-954b-d1981d9d5a67@gmail.com> On Mon, 22 Jun 2026 at 22:26, Derrick Stolee wrote: > > 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 I can definitely use that, but I was thinking that the overhead of operations such as repo_parse_commit would be high relative to the overhead of the new paint_queue struct such that it would be hard to properly measure and that it would be easier if I could spread out that cost across multiple internal runs (which requires a custom binary of some sort), but perhaps it's enough to just show that there's no measurable regression here and then hyperfine is indeed the right fit. I'll start with that and see if I need to do anything more complex. Thanks, Kristofer