performance-profiling-rust

Profile Rust code with Criterion benchmarks, TSC-based latency measurements, and flamegraphs.

6|Updated Feb 5, 2026
One-click install
npx skills add https://github.com/maschad/my-claude --skill performance-profiling-rust
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: performance-profiling-rust
Source: https://github.com/maschad/my-claude/tree/main/skills/performance-profiling-rust
Command: npx skills add https://github.com/maschad/my-claude --skill performance-profiling-rust

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Profiles Rust code to reveal performance bottlenecks using benchmarks, latency measurements, and flamegraphs.

Core Features & Use Cases

  • Benchmark setup with Criterion and HTML reports for transparent performance tracking.
  • Latency measurement with high-resolution timing (TSC-based) and calibrated scaling across platforms.
  • Flamegraph generation and analysis to locate hot paths in latency-sensitive code.

Quick Start

Run cargo bench to generate baseline benchmarks and inspect the generated flamegraphs to locate hot paths.

Frequently Asked Questions about performance-profiling-rust

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

FAQPage Schema
How do I profile Rust code to find performance bottlenecks?▼

Profile Rust code by running cargo bench to establish baseline benchmarks and generating flamegraphs to visually locate hot paths in latency-sensitive components. This approach reveals execution bottlenecks fast.

What is the best way to measure latency in latency-sensitive Rust components?▼

Measure latency in Rust using high-resolution TSC-based timing with calibrated scaling across platforms. This high-precision approach validates timing accuracy for latency-sensitive or hot-path components during profiling.

How do I set up benchmarks in Rust with Criterion to track performance?▼

Set up Rust benchmarks using Criterion to generate HTML reports for transparent performance tracking. Running cargo bench produces baseline measurements and visual artifacts to guide optimization of hot-path code.

Can I generate flamegraphs to visualize hot paths in Rust?▼

Yes, generate flamegraphs in Rust to visually analyze and locate hot paths within latency-sensitive code. Flamegraph generation requires profiling tooling and provides clear visualization artifacts to guide optimization.

Do I need Criterion to benchmark Rust code for performance profiling?▼

Yes, Criterion is required for benchmarking Rust code during performance profiling. It provides the benchmark setup and HTML reports needed to transparently track performance and establish baseline measurements.