Skip to content

Reuse warm Git benchmark caches - #22657

Merged
charliermarsh merged 1 commit into
mainfrom
charlie/benchmark-warm-git
Oct 16, 2026
Merged

charliermarsh merged 1 commit into
mainfrom
charlie/benchmark-warm-git

Conversation

@charliermarsh

@charliermarsh charliermarsh commented Oct 16, 2026 •

Copy link
Copy Markdown
Member

We currently repopulate the warm Git cache each time Criterion invokes the benchmark callback. Populate it once per selected benchmark and reuse it across warmup and samples.

PR Change Build + run vs baseline vs previous Elapsed
main Baseline 25m59s — — 27m13s
#22657 Warm Git cache fix 20m34s −5m25s −5m25s 21m47s
#22659 Larger build runners 17m26s −8m33s −3m08s 18m41s
#22660 Zstd artifacts 15m10s −10m49s −2m16s 16m14s
#22656 Sharding 13m15s −12m44s −1m55s 14m33s

Measured once per change against main (dd59612659). Setup and transfer times vary between runs. Build + run excludes waiting; elapsed includes it. Run for this change (26a98eda40).

@codspeed

codspeed Bot commented Oct 16, 2026 •

Copy link
Copy Markdown

Merging this PR will improve performance by 8.96%

⚠️ 8 benchmarks spent significant time in system calls

System calls cannot be consistently instrumented, so they are not included in the measure, which understates the real cost. Please switch to the Walltime instrument to accurately measure system calls.

Measurement and system calls

⚠️ Different runtime environments detected

Some benchmarks with significant performance changes were compared across different runtime environments,
which may affect the accuracy of the results.

Open the report in CodSpeed to investigate

⚡ 3 improved benchmarks
✅ 66 untouched benchmarks
⏩ 54 skipped benchmarks1

Performance Changes

Mode Benchmark BASE HEAD Efficiency
⚡ ⚠️ Simulation discover_workspace_from_all_members_with_excludes 164.1 ms 142.6 ms +15.09%
⚡ WallTime git_fetch_warm_reference[django] 8.2 ms 7.7 ms +6.22%
⚡ WallTime git_fetch_warm_commit[django] 2.6 ms 2.5 ms +5.82%

Tip

Curious why performance improved? Comment @codspeedbot explain why performance improved on this PR, or directly use the CodSpeed MCP with your agent.


Comparing charlie/benchmark-warm-git (26a98ed) with main (dd59612)

Open in CodSpeed

Footnotes

  1. 54 benchmarks were skipped, so the baseline results were used instead. If they were deleted from the codebase, click here and archive them to remove them from the performance reports. ↩

@zanieb

zanieb commented Oct 16, 2026

Copy link
Copy Markdown
Member

Closes astral-sh#2846

@charliermarsh
charliermarsh removed this pull request from stack #22662 October 16, 2026 20:59
@charliermarsh
charliermarsh changed the base branch from charlie/marker-isop to main October 16, 2026 20:59
@charliermarsh
charliermarsh force-pushed the charlie/benchmark-warm-git branch from 9f8a992 to 26a98ed Compare October 16, 2026 20:59
@charliermarsh
charliermarsh merged commit 585dcdb into main Oct 16, 2026
88 of 90 checks passed
@charliermarsh
charliermarsh deleted the charlie/benchmark-warm-git branch October 16, 2026 21:15

This branch was previously deployed

1 inactive deployment
automations — 26a98eda Deployed Oct 16, 2026 by charliermarsh via review / security review #51444
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

test:integration Enable integration tests for a pull request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants