Skip to content

Add benchmark for GH #461: branches at different history depths - #488

Merged
max-sixty merged 1 commit into
mainfrom
benchmark
Jan 9, 2026
Merged

max-sixty merged 1 commit into
mainfrom
benchmark

Conversation

@max-sixty

Copy link
Copy Markdown
Owner

Summary

  • Adds real_repo_many_branches benchmark that reproduces the ~15s wt select delay reported in wt select takes 15s #461
  • Key finding: slowdown comes from branch divergence depth (how far back branches diverge in history), not from commits per branch
  • Uses 50 branches at different historical points on rust-lang/rust (~14s per iteration)

Scaling discovered:

Branches Time
20 at different depths ~5s
50 at different depths ~11s
100 at different depths ~24s
200 at different depths >30s (times out)

Test plan

  • Benchmark runs successfully: cargo bench --bench list real_repo_many_branches
  • Pre-commit checks pass
  • Benchmark timing (~14s) matches wt select takes 15s #461 report (~15s)

🤖 Generated with Claude Code

Adds real_repo_many_branches benchmark that reproduces the ~15s wt select
delay reported in #461. Key finding: the slowdown comes from branch
divergence depth (how far back branches diverge in history), not from
commits per branch.

Scaling on rust-lang/rust:
- 20 branches at different depths: ~5s
- 50 branches at different depths: ~11s (benchmark uses this)
- 100 branches at different depths: ~24s
- 200 branches at different depths: >30s (times out)

Co-Authored-By: Claude <[email protected]>
@max-sixty
max-sixty merged commit 71b7ea3 into main Jan 9, 2026
@max-sixty
max-sixty deleted the benchmark branch January 9, 2026 15:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant