Install any skill in seconds. Free to start, no credit card required.
Get Started Free →Benchmarks and optimizes Rust libraries with criterion, tests Cargo feature matrices, and verifies performance claims before publishing.
95% 100%+5 ptsof test cases passed
Passed 22 of 22 test cases with the skill, and 21 of 22 without it.
A contributor submits a PR replacing a hash map with a B-tree in our Rust library, claiming it is faster. What steps should maintainers require before merging?
Recommends comparing candidate and main branch benchmarks using the same benchmark harness
3 of 3 safety checks passed
Use this skill when a Rust library needs performance work that can be measured and shipped behind clear Cargo feature boundaries.
| Task | Load |
|---|---|
| Add benchmarks or optimize a hot path | guidelines.md, workflows/benchmark-feature-matrix.md |
| Review Cargo features and optional dependencies | references/performance-feature-patterns.md |
| Validate performance claims before release | references/performance-feature-patterns.md |
Guidance is transformed and paraphrased from Herbert Wolverson, Advanced Hands-On Rust, especially Chapters 2 and 3 on creating, testing, optimizing, benchmarking, and feature-gating a library. Examples are original skeletons.
Next to this one in the catalogue, plus more from the same author.