Skip to content

Benchmark cached project environment reinstalls - #1559

Draft
zaniebot wants to merge 1 commit into
zb/bench-local-wheel-cachefrom
zb/bench-environment-reinstall
Draft

zaniebot wants to merge 1 commit into
zb/bench-local-wheel-cachefrom
zb/bench-environment-reinstall

Conversation

@zaniebot

Copy link
Copy Markdown
Collaborator

Measure uv sync --reinstall against the frozen Packse, uv documentation, and Prefect environments. Their real small, medium, and large package graphs exercise cached wheel-record reads, removal, and installation without network downloads. Each invocation restores the same installed versions, giving cache-format and reinstall changes a whole-command walltime workload.

@zaniebot
zaniebot added this pull request to stack #1482 September 12, 2026 02:17
@astral-automations-bot astral-automations-bot Bot added area:benchmarks Related to benchmarking internal A refactor or improvement that is not user-facing labels Sep 12, 2026
@zaniebot
zaniebot force-pushed the zb/bench-environment-reinstall branch from c0ac3d3 to 0fdf3ea Compare September 12, 2026 02:56
@codspeed

codspeed Bot commented Sep 12, 2026 •

Copy link
Copy Markdown

Merging this PR will improve performance by 84.59%

⚡ 14 improved benchmarks
✅ 235 untouched benchmarks
🆕 3 new benchmarks

Performance Changes

Mode Benchmark BASE HEAD Efficiency
⚡ WallTime reinstall_dry_run[packse] 450.2 ms 146.9 ms ×3.1
⚡ WallTime reinstall_dry_run[uv_docs] 450.4 ms 148.6 ms ×3
⚡ WallTime reinstall_dry_run[prefect] 453.3 ms 149.6 ms ×3
⚡ WallTime reinstall[packse] 458.5 ms 154.7 ms ×3
⚡ WallTime reinstall[prefect] 460.9 ms 157.1 ms ×2.9
⚡ WallTime reinstall[uv_docs] 458.6 ms 156.5 ms ×2.9
⚡ WallTime content_addressed/cold[flask] 945.8 ms 706.7 ms +33.83%
⚡ WallTime default/cold[flask] 945 ms 706.8 ms +33.7%
⚡ WallTime default/cold[sympy] 1,051.8 ms 813.4 ms +29.32%
⚡ WallTime content_addressed/cold[sympy] 1,073.6 ms 836.4 ms +28.35%
⚡ WallTime default/cold[jupyterlab] 1,122.4 ms 880.5 ms +27.47%
⚡ WallTime content_addressed/cold[jupyterlab] 1,144.7 ms 907.8 ms +26.1%
⚡ WallTime default/cold[numpy] 1,160.8 ms 924.8 ms +25.51%
⚡ WallTime content_addressed/cold[numpy] 1,228.7 ms 991.5 ms +23.93%
🆕 WallTime cached[packse] N/A 474.1 ms N/A
🆕 WallTime cached[prefect] N/A 836.2 ms N/A
🆕 WallTime cached[uv_docs] N/A 1.6 s 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-environment-reinstall (24fec0b) with zb/bench-local-wheel-cache (6e70772)

Open in CodSpeed

@zaniebot
zaniebot force-pushed the zb/bench-environment-reinstall branch from a0cf171 to 24fec0b Compare September 12, 2026 13:36
@zaniebot zaniebot added risk:1 Negligible risk of localized mistakes that are obvious and easy to correct. priority:3 Normal: useful features, documentation, usability, or routine efficiency improvements. size:1 Small: one localized behavior with straightforward tests or documentation checks. labels Sep 22, 2026
@zaniebot zaniebot added the build:skip-release Disable building release binaries for a pull request label Oct 7, 2026

This branch has not been deployed

No deployments
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 priority:3 Normal: useful features, documentation, usability, or routine efficiency improvements. risk:1 Negligible risk of localized mistakes that are obvious and easy to correct. size:1 Small: one localized behavior with straightforward tests or documentation checks.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants