rust-performance

Profile Rust applications to identify bottlenecks and guide optimizations.

Updated Apr 21, 2026
One-click install
npx skills add https://github.com/gregoryraymond/claude-agents-and-skills --skill rust-performance-gregoryraymond
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: rust-performance
Source: https://github.com/gregoryraymond/claude-agents-and-skills/tree/main/skills/rust-performance
Command: npx skills add https://github.com/gregoryraymond/claude-agents-and-skills --skill rust-performance-gregoryraymond

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Rust performance issues are identified and mitigated by structured profiling and benchmarking, enabling reliable improvements.

Core Features & Use Cases

  • Profiling tools guidance: identify hot paths, memory allocations, and cache misses in Rust projects.
  • Benchmarking and chaos-testing across release builds with flamegraphs, sampling profilers, and micro-benchmarks.
  • Use Case: A Bevy engine project to optimize ECS iteration and data layout for higher frame rates.

Quick Start

Run a release-profiled profiling session on your Rust project to locate CPU hotspots and guide optimizations.

Frequently Asked Questions about rust-performance

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

FAQPage Schema
How do I find CPU hotspots and memory allocation bottlenecks in a Rust application?

Profiling Rust applications with flamegraphs and sampling profilers identifies CPU hotspots and memory allocation bottlenecks. This Skill guides structured profiling sessions to reveal performance issues and direct targeted optimizations for measurable speed gains.

What is the best way to profile a Bevy engine project for higher frame rates?

Profiling a Bevy engine project for higher frame rates involves analyzing ECS iteration and data layout. This Skill enables cache-aware layout improvements and memory reduction to optimize entity component system loops and increase rendering performance.

How do I run reliable Rust benchmarking and ensure accurate performance measurements?

Reliable Rust benchmarking requires enforcing release-build measurements and utilizing micro-benchmarks. This Skill provides toolchain recommendations and repeatable reporting to validate performance improvements and prevent inaccurate debug-profile data.

When do I need cache-aware data layout improvements for Rust performance optimization?

Cache-aware data layout improvements are needed for Rust performance optimization when profiling reveals cache misses. This Skill helps identify memory layout inefficiencies and guides structural changes to enhance cache locality during execution.

Does profiling Rust applications require specific toolchain configurations?

Profiling Rust applications requires specific toolchain configurations like release builds to gather accurate data. This Skill enforces release-profiled measurements and recommends appropriate profiling tools to ensure dependable optimization cycles.