Skip to content

Benchmark managed Python uninstall cleanup - #1587

Draft
zaniebot wants to merge 1 commit into
zb/bench-python-installfrom
zb/bench-python-uninstall
Draft

zaniebot wants to merge 1 commit into
zb/bench-python-installfrom
zb/bench-python-uninstall

Conversation

@zaniebot

Copy link
Copy Markdown
Collaborator

Measure removing one or all managed Python versions from realistic one-, two-, and four-interpreter installations. The Unix workloads prepare real interpreter files and executable links before timing, covering installation discovery, link cleanup, and filesystem removal.

@zaniebot
zaniebot added this pull request to stack #1482 September 12, 2026 05:10
@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-python-uninstall branch from 9cfb54a to d80a091 Compare September 12, 2026 06:40
@codspeed

codspeed Bot commented Sep 12, 2026 •

Copy link
Copy Markdown

Merging this PR will degrade performance by 1.25%

⚠️ Unknown Walltime execution environment detected

Using the Walltime instrument on standard Hosted Runners will lead to inconsistent data.

For the most accurate results, we recommend using CodSpeed Macro Runners: bare-metal machines fine-tuned for performance measurement consistency.

⚡ 3 improved benchmarks
❌ 2 regressed benchmarks
✅ 314 untouched benchmarks
🆕 23 new benchmarks
⏩ 37 skipped benchmarks1

Warning

Please fix the performance issues or acknowledge them on CodSpeed.

Performance Changes

Mode Benchmark BASE HEAD Efficiency
❌ WallTime cold[sampleproject] 601 ms 784.5 ms -23.4%
❌ WallTime no_build[sampleproject] 600.7 ms 783.8 ms -23.36%
⚡ WallTime render[numpy] 4.7 ms 3.7 ms +24.36%
⚡ WallTime four_processes[flask] 814.4 ms 709.5 ms +14.78%
⚡ WallTime advised_cold_data[django] 1.7 s 1.5 s +12.03%
🆕 WallTime read[packse] N/A 951.7 µs N/A
🆕 WallTime read[prefect] N/A 18.8 ms N/A
🆕 WallTime read[uv] N/A 4.5 ms N/A
🆕 WallTime write[packse] N/A 838.6 µs N/A
🆕 WallTime write[prefect] N/A 15.2 ms N/A
🆕 WallTime write[uv] N/A 3.8 ms N/A
🆕 WallTime read[pufferlib] N/A 127 ms N/A
🆕 WallTime write[pufferlib] N/A 33.9 s N/A
🆕 WallTime run_no_sync[packse] N/A 74.8 ms N/A
🆕 WallTime run_no_sync[prefect] N/A 81.3 ms N/A
🆕 WallTime run_no_sync[uv_docs] N/A 77.5 ms N/A
🆕 WallTime sync_frozen[packse] N/A 39.6 ms N/A
🆕 WallTime sync_frozen[prefect] N/A 78.8 ms N/A
🆕 WallTime sync_frozen[uv_docs] N/A 49.9 ms N/A
🆕 WallTime cached[packse] N/A 252.1 ms N/A
... ... ... ... ... ...

ℹ️ Only the first 20 benchmarks are displayed. Go to the app to view all benchmarks.

Tip

Investigate this regression by commenting @codspeedbot fix this regression on this PR, or directly use the CodSpeed MCP with your agent.


Comparing zb/bench-python-uninstall (1980ec6) with zb/bench-python-install (bc08382)

Open in CodSpeed

Footnotes

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

@zaniebot
zaniebot force-pushed the zb/bench-python-uninstall branch from d80a091 to da7009a Compare September 12, 2026 07:11
@zaniebot
zaniebot force-pushed the zb/bench-python-uninstall branch from da7009a to 1980ec6 Compare September 12, 2026 13:40
@zaniebot zaniebot added risk:2 Low, contained risk of minor incorrect behavior with straightforward recovery. priority:3 Normal: useful features, documentation, usability, or routine efficiency improvements. size:2 Moderate: one subsystem with meaningful invariants, edge cases, or operational evidence to inspect. 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:2 Low, contained risk of minor incorrect behavior with straightforward recovery. size:2 Moderate: one subsystem with meaningful invariants, edge cases, or operational evidence to inspect.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants