test: split benchmark case entrypoints#13971
Conversation
Rsdoctor Bundle Diff AnalysisFound 6 projects in monorepo, 0 projects with changes. 📊 Quick Summary
Generated by Rsdoctor GitHub Action |
📦 Binary Size-limit
🙈 Size remains the same at 61.92MB |
There was a problem hiding this comment.
Pull request overview
Note
Copilot was unable to run its full agentic suite in this review.
Splits benchmark registration into per-case entrypoint modules under xtask/benchmark/cases to keep benchmark implementations in xtask/benchmark/benches/groups while producing shorter CodSpeed callgrind profile-part source paths for KCachegrind readability.
Changes:
- Adds per-benchmark “case” entrypoint modules in
xtask/benchmark/cases/*and wires them intocriterion_main!. - Removes
criterion_group!registrations frombenches/groups/*and keeps only benchmark implementation functions there. - Refactors persistent-cache benchmarks to share setup/teardown via a common helper.
Reviewed changes
Copilot reviewed 17 out of 17 changed files in this pull request and generated 3 comments.
Show a summary per file
| File | Description |
|---|---|
| xtask/benchmark/cases/*.rs | New per-case Criterion entrypoints (each exports a case group). |
| xtask/benchmark/cases/mod.rs | Exposes all case modules for registration from benches.rs. |
| xtask/benchmark/benches/benches.rs | Registers individual case entrypoints to get shorter profile-part paths. |
| xtask/benchmark/benches/groups/bundle.rs | Switches from registering all bundle benches at once to a per-target case entrypoint. |
| xtask/benchmark/benches/groups/persistent_cache.rs | Extracts shared persistent-cache benchmarking logic into a helper. |
| xtask/benchmark/benches/groups/{scan_dependencies,module_graph_api,build_chunk_graph}.rs | Removes group-registration macros; retains benchmark implementations. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Merging this PR will not alter performance
Performance Changes
Comparing Footnotes
|
Summary
xtask/benchmark/cases.xtask/benchmark/benches/groupswhile shortening CodSpeed callgrind profile-part paths for KCachegrind readability.Related links
Follow-up to #13969.
Checklist