Skip to content

Benchmark Git source fetches - #22541

Merged
zanieb merged 1 commit into
mainfrom
zb/bench-git-source-baseline
Oct 14, 2026
Merged

zanieb merged 1 commit into
mainfrom
zb/bench-git-source-baseline

Conversation

@astral-automations-bot

Copy link
Copy Markdown
Contributor

Git dependencies with long histories can spend substantial time fetching and checking out source trees. Add git_fetch to the existing walltime benchmarks with cold and cached fetches and successive Django releases. Rust fixtures prepare pinned repository histories before measurement, so the local Git transport keeps network variability out of the results.

@astral-automations-bot astral-automations-bot Bot added area:benchmarks Related to benchmarking build:skip-release Disable building release binaries for a pull request internal A refactor or improvement that is not user-facing labels Oct 14, 2026
@zanieb
zanieb enabled auto-merge (squash) October 14, 2026 16:19
@zanieb
zanieb merged commit 7ab472b into main Oct 14, 2026
124 checks passed
@zanieb
zanieb deleted the zb/bench-git-source-baseline branch October 14, 2026 16:38
@codspeed

codspeed Bot commented Oct 14, 2026

Copy link
Copy Markdown

Merging this PR will improve performance by 10.53%

⚠️ 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

⚡ 1 improved benchmark
✅ 53 untouched benchmarks
🆕 15 new benchmarks
⏩ 54 skipped benchmarks1

Performance Changes

Mode Benchmark BASE HEAD Efficiency
⚡ ⚠️ Simulation discover_workspace_from_all_members 156.2 ms 141.3 ms +10.53%
🆕 WallTime git_fetch_cold_precise[django] N/A 5.1 s N/A
🆕 WallTime git_fetch_cold_precise[flask] N/A 273.4 ms N/A
🆕 WallTime git_fetch_cold_precise[sampleproject] N/A 36.6 ms N/A
🆕 WallTime git_fetch_revision_history[django/1] N/A 5.1 s N/A
🆕 WallTime git_fetch_revision_history[django/10] N/A 7.3 s N/A
🆕 WallTime git_fetch_revision_history[django/4] N/A 5.9 s N/A
🆕 WallTime git_fetch_warm_commit[django] N/A 2.6 ms N/A
🆕 WallTime git_fetch_warm_commit[flask] N/A 2.6 ms N/A
🆕 WallTime git_fetch_warm_commit[sampleproject] N/A 2.6 ms N/A
🆕 WallTime git_fetch_warm_precise[django] N/A 2.6 ms N/A
🆕 WallTime git_fetch_warm_precise[flask] N/A 2.6 ms N/A
🆕 WallTime git_fetch_warm_precise[sampleproject] N/A 2.6 ms N/A
🆕 WallTime git_fetch_warm_reference[django] N/A 8.1 ms N/A
🆕 WallTime git_fetch_warm_reference[flask] N/A 8 ms N/A
🆕 WallTime git_fetch_warm_reference[sampleproject] N/A 5.8 ms N/A

Tip

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


Comparing zb/bench-git-source-baseline (9b9f2c8) with main (282238e)

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. ↩

- name: "Checkout Branch"
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
ref: ${{ github.event_name == 'pull_request' && github.event.pull_request.head.sha || github.sha }}

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

-.-

zanieb added a commit that referenced this pull request Oct 14, 2026
Walltime benchmark builds fail on older pull requests because the
workflow requests `git_fetch` from the merge revision but checks out a
PR head that does not contain it. Remove the checkout overrides
introduced in #22541 so both walltime jobs use the default
merge-revision checkout, consistent with the simulated benchmarks.

This branch was previously deployed

1 inactive deployment
automations — 9b9f2c8f Deployed Oct 14, 2026 by astral-automations-bot[bot] via review / security review #50943
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area:benchmarks Related to benchmarking build:skip-release Disable building release binaries for a pull request internal A refactor or improvement that is not user-facing

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant