Repository navigation
Conversation
93866c3 to
9e8edac
Compare
Merging this PR will degrade performance by 13.94%
|
| Mode | Benchmark | BASE |
HEAD |
Efficiency | |
|---|---|---|---|---|---|
| ❌ | CPU Simulation | imbibe_marker_no_conflicts[0] |
343 ns | 398.5 ns | -13.94% |
Tip
Investigate this regression by commenting @codspeedbot fix this regression on this PR, or directly use the CodSpeed MCP with your agent.
Comparing codex/deserialize-build-metadata (43ee3c4) with main (5477928)
Footnotes
-
35 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. ↩
Summary
Performance confirmation pending: results from the fixed confirmation pass with a baseline control are not yet available; assess the no-regression requirement using both data sets.
Performance gate: the following cases have a confidence interval entirely above zero and need investigation before merging: license-spdx, uv-build metadata, strings.
CodSpeed performance gate: marker conflict simplification (
imbibe_marker_no_conflicts[0]) measures 343 ns → 398.5 ns (+16.18% time). The report warns that runtime environments differ. The same result was reported after one fixed repeat. The runtime-environment mismatch warning remains; this discrepancy is unresolved and the no-regression requirement is not cleared.Deserialize the string and table forms of
project.readmeandproject.licensedirectly. A small shared scalar visitor retains malformed/duplicate-field fallthrough without allocating Serde's generic buffered content tree.README file tables take precedence over text tables; license text tables take precedence over file tables. Required content type, optional charset, and accepted representations remain unchanged. Underlying deserializer errors propagate; malformed-schema errors can be more specific.
Size
Linux x86_64, Rust 1.99.0 / LLVM 23, baseline
4053abea35379683d0336161cad9afddd64190ad, head43ee3c4876c96be7788ce04710d346918f0cfb7f. Both use the same checkout path, production dependency versions, compiler and build flags. Sizes are GNU-stripped executables; KB = 1,000 bytes.uvuvxuv-builduvanduvx: release profile, self-update enabled, fat LTO, one codegen unit, panic=abort, no PGO.uv-build: the repository’s minimal-size profile with LLD identical-code folding. Registry source paths are remapped identically in both builds.Performance
Negative time changes are faster. Measurements run on an Intel Xeon Platinum 8573C and use randomized, balanced before/after pairs on one pinned CPU, eight warmups per binary and case, 240 pairs for focused parsing and 600 pairs for complete commands. Focused batches target 25 ms; confidence intervals use 4,000 paired bootstrap resamples. Compilation is stopped during measurement. These are local Linux measurements, not a claim about every workload or platform.
Focused cases use the exact private production
Readme/Licensedefinitions extracted into a standalone TOML harness, compiled with the minimal-size profile. Command cases use the actual releaseuv-build: metadata generation for string/table metadata and wheel creation for a 300-module fixture.Test Plan
cargo test --locked -p uv-build-backend --lib: 77 passing tests.cargo clippy --locked --all-targets --all-features -p uv-build-backend -- -D warnings: passed.cargo fmt --all --checkandgit diff --check: passed.Temporary differential harness: 8,284 fixtures compared with the derived untagged implementation; accepted values and resulting variants matched. The reference implementation and generated corpus are not included in the patch.
Focused regression tests cover required fields, precedence/fallthrough, duplicate fields or invalid representations as applicable.
Metadata files for strings are byte-identical.
Metadata files for tables are byte-identical.
300-module wheels are byte-identical: SHA256 75a283a017b1c736f3e379ea75b30b2af29e352968bfa204815f6ad02be84ec7.
uvx executable is byte-identical to baseline.
GitHub benchmark checks are requested with
test:benchmarks.CI status
Python lint is blocked by
ty 0.0.87:invalid-mutable-overridein unchangedscripts/codspeed-profiles.py:166. The same failure reproduces on baseline4053abea35379683d0336161cad9afddd64190ad;ty 0.0.86passes on that file.CodSpeed reports
imbibe_marker_no_conflicts[0]at 343 ns before and 398.5 ns after (+16.18% time), with a warning that runtime environments differ. This marker-conflict benchmark is outside the changed metadata deserializers; the discrepancy remains unresolved.The fixed simulation repeat completed; CodSpeed updated its report at 2026-10-21 00:36 UTC with the same 343 ns → 398.5 ns result and runtime-environment warning. Both baseline and head use Rust 1.99.0.