benchmarking-perf

Run Criterion benchmarks and compare results against a saved baseline.

4|Updated Feb 15, 2026
One-click install
npx skills add https://github.com/d-o-hub/chaotic_semantic_memory --skill benchmarking-perf
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: benchmarking-perf
Source: https://github.com/d-o-hub/chaotic_semantic_memory/tree/main/.agents/skills/benchmarking-perf
Command: npx skills add https://github.com/d-o-hub/chaotic_semantic_memory --skill benchmarking-perf

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Benchmarking and validating performance changes can be time-consuming and error-prone; this Skill provides a repeatable workflow to run Criterion benchmarks, save baselines, and compare results to detect regressions and confirm improvements.

Core Features & Use Cases

  • Baseline management: save a baseline before changes and compare new results against it to quantify regressions or improvements.
  • Structured benchmarking: run stable, repeatable benchmarks across hot-path operations and scalability scenarios.
  • Decision support: interpret results to guide optimization priorities and validate perf targets.

Quick Start

Save a baseline with cargo bench and then compare your current run against that baseline to identify performance changes.

Frequently Asked Questions about benchmarking-perf

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

FAQPage Schema
How do I detect performance regressions in Rust code using Criterion benchmarks?

Detect performance regressions by running Criterion benchmarks and comparing current results against a saved baseline. This workflow identifies variations in hot-path operations and quantifies whether code changes improved or degraded execution speed.

What is the best way to establish a reproducible benchmark baseline for scalability testing?

A reproducible benchmark baseline is established by capturing initial performance metrics with cargo bench before making code changes. This saved baseline provides a consistent reference point for validating future scalability assessments across varying input sizes.

How do I validate that hot-path optimizations actually improve performance?

Validate hot-path optimizations by executing structured Criterion benchmarks after code changes and comparing them to your saved baseline. This comparison generates clear reports that confirm whether your performance targets were successfully met.

Can I use Criterion benchmarks for regression testing across varying input sizes?

Criterion benchmarks support regression testing across varying input sizes by running stable, repeatable measurements. You can consistently compare new benchmark runs against a previously saved baseline to detect performance variations.

Does baseline comparison in benchmarking require any specific environment setup?

Baseline comparison in benchmarking requires using cargo bench to save and manage baseline data. The environment needs to support consistent benchmarking execution to ensure performance changes are accurately quantified and reproducible.