performance-benchmark

Define and execute Criterion benchmarks for MEMORY_P to quantify performance changes across iterations.

Updated Dec 30, 2025
One-click install
npx skills add https://github.com/Rigohl/MEMORY_P --skill performance-benchmark-rigohl
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: performance-benchmark
Source: https://github.com/Rigohl/MEMORY_P/tree/main/.github/skills/performance-benchmark
Command: npx skills add https://github.com/Rigohl/MEMORY_P --skill performance-benchmark-rigohl

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This skill enables teams to define and run repeatable performance benchmarks for MEMORY_P using Criterion, turning performance work into measurable, comparable results.

Core Features & Use Cases

  • Benchmark templates: Provides ready-to-run Criterion benchmarks that target core MEMORY_P paths and components.
  • Regression detection: Automatically captures performance regressions across code changes and baselines.
  • Use Case: Compare performance of different optimization strategies on critical functions like code analysis, memory management, and I/O paths.

Quick Start

Run a baseline benchmark suite in the MEMORY_P workspace to produce execution times, throughput, and regression baselines.

Frequently Asked Questions about performance-benchmark

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

FAQPage Schema
How do I set up Criterion benchmarks for a Rust project to detect performance regressions?

You can use Criterion to define and run reproducible benchmarks that quantify performance changes across iterations. The skill provides templates targeting core paths to collect execution times, throughput, and regression baselines for Rust-based components.

What is the best way to measure performance optimizations in Rust components?

Measuring performance optimizations in Rust requires running reproducible Criterion benchmarks that produce execution times and throughput metrics. This skill automates capturing performance baselines to validate optimization strategies on critical functions like memory management and I/O paths.

Do I need a specific Rust project layout to run Criterion benchmarks?

Yes, running Criterion benchmarks requires a Rust project layout to generate benches and collect metrics. The skill relies on Criterion and the standard Rust workspace structure to execute benchmarks and export comparison reports for your components.

Can I compare different optimization strategies for memory management and I/O paths using Criterion?

Yes, Criterion benchmarks compare performance across different optimization strategies on critical functions like code analysis, memory management, and I/O paths. The skill captures measurable results by running baseline suites and comparing execution times against subsequent iterations.

When should I use Criterion benchmarks instead of simple timing for Rust performance analysis?

Criterion benchmarks are necessary when you need reproducible performance analysis to detect regressions and guide refactors. Unlike simple timing, Criterion provides statistical rigor, throughput measurements, and automated baseline comparisons across code changes in Rust projects.

Why does my Rust performance benchmark show inconsistent results across iterations?

Inconsistent benchmark results often occur without a reproducible Criterion setup that establishes baselines. This skill addresses that by defining standard benchmarks that quantify performance changes accurately, ensuring regression detection captures real impacts rather than environmental noise.