m10-performance

Profile Rust projects with flamegraph, perf, and criterion to guide safe optimizations.

Updated Aug 23, 2026
One-click install
npx skills add https://github.com/mberetvas/dbt-migrator --skill m10-performance-mberetvas
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: m10-performance
Source: https://github.com/mberetvas/dbt-migrator/tree/main/.github/skills/m10-performance
Command: npx skills add https://github.com/mberetvas/dbt-migrator --skill m10-performance-mberetvas

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Rust performance optimization is often manual, error-prone, and time-consuming. This skill provides structured guidance to profile, benchmark, and implement safe, measurable improvements across Rust projects.

Core Features & Use Cases

  • Profiling-first approach: identify hotspots with flamegraphs, perf, and criterion benchmarks.
  • Code-level optimizations: guidance on pre-allocation, data layout, and parallelism (rayon, threading) to reduce allocations and improve cache efficiency.
  • Validated improvements: step-by-step flow from measurement to change, with guardrails and revert options when performance regressions occur.

Quick Start

Profile your Rust project and apply the recommended optimization patterns.

Frequently Asked Questions about m10-performance

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

FAQPage Schema
How do I optimize Rust performance using flamegraphs and criterion benchmarks?

To optimize Rust performance, you profile hotspots with flamegraphs and criterion benchmarks, then apply pre-allocation and data layout changes. This skill guides the profiling, measurement, and safe code optimization process.

What's the best way to reduce allocations and improve cache efficiency in Rust?

Improving cache efficiency and reducing allocations in Rust involves pre-allocating memory and optimizing data layout. This skill provides structured guidance on these code-level optimizations and parallelism techniques.

Can I use rayon for parallelism to speed up my Rust libraries and services?

Yes, you can use rayon and threading for parallelism to achieve measurable gains in Rust libraries and services. This skill guides applying concurrency patterns alongside other safe code optimizations.

How do I detect performance regressions after optimizing Rust code?

Detecting performance regressions in Rust requires validation steps with guardrails and revert options. This skill provides a step-by-step flow from measurement to change, ensuring safe, validated improvements.

Does this Rust optimization approach work for both libraries and services?

Yes, this Rust optimization approach applies to both libraries and services seeking measurable performance gains. It guides profiling, benchmarking, and safe code optimizations across diverse Rust projects.

What profiling tools do I need to identify Rust performance hotspots?

To identify Rust performance hotspots, you need profiling tools like flamegraph, perf, and criterion. This skill satisfies requirements for these tools to pinpoint areas for optimization.