Identifies performance-critical code changes and recommends specific Criterion benchmarks to prevent regressions.
The Benchmark Advisor skill streamlines the performance optimization workflow by automatically analyzing git diffs to detect changes in performance-sensitive source files. By mapping modified files to their corresponding Criterion benchmark suites via a configurable mapping file, it provides actionable cargo bench commands tailored specifically to your current work. This ensures developers can verify the performance impact of their changes immediately, reducing the risk of accidental regressions and saving significant time by running only the relevant tests rather than the entire project suite.
Key Features
01Customizable mapping configuration via TOML
02Automated mapping of code to Criterion benchmarks
0323 GitHub stars
04Direct cargo bench command generation
05Git-aware file change detection
06Performance-impact explanations for recommendations
Use Cases
01Verifying performance impact after refactoring core cache logic
02Optimizing local development cycles by executing targeted performance tests
03Identifying necessary benchmarks during pre-commit reviews