bench-compare

Compare Criterion.rs benchmark results against a saved baseline.

2|Updated Jan 24, 2026
One-click install
npx skills add https://github.com/ahrav/scratch-scanner-rs --skill bench-compare
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: bench-compare
Source: https://github.com/ahrav/scratch-scanner-rs/tree/main/.claude/skills/bench-compare
Command: npx skills add https://github.com/ahrav/scratch-scanner-rs --skill bench-compare

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill helps developers measure the performance impact of code changes by comparing benchmark results against a saved baseline, ensuring optimizations are effective and regressions are caught early.

Core Features & Use Cases

  • Baseline Comparison: Run benchmarks and compare current results against a previously saved baseline.
  • Targeted Benchmarking: Execute specific benchmark suites (e.g., scanning, throughput) or all benchmarks.
  • Use Case: After optimizing a critical scanning function, use this Skill to run the scan.rs benchmarks and verify that the changes have improved performance without introducing regressions.

Quick Start

Run all benchmarks and compare them against the 'before' baseline.

Frequently Asked Questions about bench-compare

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I track Rust performance regressions after code changes?

To track Rust performance regressions, compare current benchmark results against a previously saved baseline. This identifies regressions or improvements in your Rust projects, ensuring optimizations are effective.

How do I compare current Criterion.rs benchmarks against a saved baseline?

You can compare Criterion.rs benchmarks against a saved baseline by running the benchmarks and executing the comparison commands. This provides clear metrics on code changes to facilitate iterative optimization.

Does benchmark baseline comparison require the Criterion.rs framework?

Yes, baseline comparison requires the Criterion.rs benchmarking framework. The Skill relies on adherence to Criterion's baseline saving and comparison commands to measure performance impact accurately.

Can I run targeted benchmark suites like scanning or throughput instead of all benchmarks?

Yes, you can execute targeted benchmark suites such as scanning or throughput instead of running all benchmarks. This allows you to verify specific optimizations without introducing regressions.

When do I need to run benchmark baseline comparisons for Rust optimization?

You need benchmark baseline comparisons for Rust optimization after modifying a critical function. Comparing results against a saved baseline verifies that changes improved performance without regressions.

What is the best way to verify Rust code optimizations are effective?

The best way to verify Rust code optimizations is by comparing current benchmark results against a saved baseline. This catches regressions early and provides metrics on iterative code changes.