Skip to content

Benchmark remote wheel hash reuse - #1577

Draft
zaniebot wants to merge 1 commit into
zb/bench-requirements-includesfrom
zb/bench-download-hashing
Draft

zaniebot wants to merge 1 commit into
zb/bench-requirements-includesfrom
zb/bench-download-hashing

Conversation

@zaniebot

Copy link
Copy Markdown
Collaborator

A remote wheel downloaded without a hash policy may later be installed from a hash-locked requirement. Measure first downloads with and without required hashes, then the hash-required reuse path, using published Flask, JupyterLab, NumPy, and SymPy wheels. The loopback index keeps request latency fixed while retaining real archive transfer, extraction, and cache behavior.

@zaniebot
zaniebot added this pull request to stack #1482 September 12, 2026 04:25
@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
@codspeed

codspeed Bot commented Sep 12, 2026 •

Copy link
Copy Markdown

Merging this PR will degrade performance by 29.91%

⚡ 1 improved benchmark
❌ 6 regressed benchmarks
✅ 339 untouched benchmarks
🆕 12 new benchmarks

Warning

Please fix the performance issues or acknowledge them on CodSpeed.

Performance Changes

Mode Benchmark BASE HEAD Efficiency
❌ WallTime reinstall_dry_run[prefect] 149.1 ms 235 ms -36.56%
❌ WallTime reinstall_dry_run[packse] 146.8 ms 230.2 ms -36.24%
❌ WallTime reinstall_dry_run[uv_docs] 148.2 ms 231 ms -35.83%
❌ WallTime reinstall[prefect] 156.6 ms 242.4 ms -35.39%
❌ WallTime reinstall[packse] 154.4 ms 238.2 ms -35.18%
❌ WallTime reinstall[uv_docs] 155.4 ms 239.1 ms -35.03%
⚡ WallTime advised_cold_data[django] 1.7 s 1.5 s +17.62%
🆕 WallTime cold_required[flask] N/A 807.1 ms N/A
🆕 WallTime cold_required[jupyterlab] N/A 1.3 s N/A
🆕 WallTime cold_required[numpy] N/A 1.3 s N/A
🆕 WallTime cold_required[sympy] N/A 1.2 s N/A
🆕 WallTime cold_unhashed[flask] N/A 813.2 ms N/A
🆕 WallTime cold_unhashed[jupyterlab] N/A 1.3 s N/A
🆕 WallTime cold_unhashed[numpy] N/A 1.3 s N/A
🆕 WallTime cold_unhashed[sympy] N/A 1.2 s N/A
🆕 WallTime required_after_unhashed[flask] N/A 54 ms N/A
🆕 WallTime required_after_unhashed[jupyterlab] N/A 181.3 ms N/A
🆕 WallTime required_after_unhashed[numpy] N/A 90.2 ms N/A
🆕 WallTime required_after_unhashed[sympy] N/A 112.5 ms N/A

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-download-hashing (8e45965) with zb/bench-requirements-includes (ecfdb8c)

Open in CodSpeed

@zaniebot
zaniebot force-pushed the zb/bench-download-hashing branch from 948080a to 8e45965 Compare September 12, 2026 13:39
@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