Skip to content

Benchmark Python download catalog loading - #22125

Merged
woodruffw merged 1 commit into
mainfrom
ww/bench-python-catalog
Oct 1, 2026
Merged

woodruffw merged 1 commit into
mainfrom
ww/bench-python-catalog

Conversation

@woodruffw

@woodruffw woodruffw commented Oct 1, 2026 •

Copy link
Copy Markdown
Member

Summary

Add a CodSpeed simulation benchmark for loading the embedded Python download catalog.

Test Plan

Formatting, Clippy, and the local CodSpeed harness check pass.

@woodruffw
woodruffw added this pull request to stack #22127 October 1, 2026 15:56
@woodruffw
woodruffw marked this pull request as ready for review October 1, 2026 16:51
@woodruffw
woodruffw force-pushed the ww/bench-python-catalog branch from 4d847ff to 1740b8f Compare October 1, 2026 16:57
@woodruffw
woodruffw removed this pull request from stack #22127 October 1, 2026 18:17
@woodruffw
woodruffw added this pull request to stack #22139 October 1, 2026 18:18
@woodruffw
woodruffw force-pushed the ww/bench-python-catalog branch from 1740b8f to 020692b Compare October 1, 2026 18:41
Comment thread crates/uv-bench/benches/uv_python.rs Resolved
Measure embedded catalog loading in the CodSpeed simulation job, which builds all benchmark targets.
@woodruffw
woodruffw force-pushed the ww/bench-python-catalog branch from 020692b to f2cc42b Compare October 1, 2026 21:27
@woodruffw woodruffw changed the title Benchmark Python download catalog loading and listing Benchmark Python download catalog loading Oct 1, 2026
@zanieb zanieb added internal A refactor or improvement that is not user-facing area:benchmarks Related to benchmarking labels Oct 1, 2026
@woodruffw
woodruffw merged commit 0a41ee3 into main Oct 1, 2026
124 checks passed
@woodruffw
woodruffw deleted the ww/bench-python-catalog branch October 1, 2026 22:22
woodruffw added a commit that referenced this pull request Oct 1, 2026
## Summary

Compress the embedded Python catalog with zstd level 19 at build time
and decompress it before parsing. The catalog shrinks from 2,611,893 to
233,814 bytes.

Local release builds (`aarch64-apple-darwin`, Rust 1.98.1, default
features, fat LTO):

| Binary | Before (bytes) | After (bytes) | Reduction |
| --- | ---: | ---: | ---: |
| With symbols | 55,017,552 | 52,639,088 | 4.32% |
| `strip -S -x` | 43,138,056 | 40,743,856 | 5.55% |

#22125 adds CodSpeed simulation coverage. #22129 compares zstd with
zlib.

## Test Plan

- Formatting, Clippy, 31 download tests, and two listing integration
tests passed.
- All 5,646 catalog records round-trip; all 2,086 listing entries match
the uncompressed catalog.
- Profiling smoke tests and local CodSpeed harness checks passed.

This branch was previously deployed

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

Labels

area:benchmarks Related to benchmarking internal A refactor or improvement that is not user-facing

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants