rust-performance

Profile Rust hot paths and validate performance improvements with flamegraph and criterion.

Updated Mar 22, 2026
One-click install
npx skills add https://github.com/cecon123/tg-remote-bot --skill rust-performance-cecon123
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: rust-performance
Source: https://github.com/cecon123/tg-remote-bot/tree/main/.agents/skills/rust-performance
Command: npx skills add https://github.com/cecon123/tg-remote-bot --skill rust-performance-cecon123

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Rust performance engineering faces bottlenecks that slow software delivery and degrade user experience. This skill helps locate hot paths, measure impact, and drive safe, data-backed optimizations.

Core Features & Use Cases

  • Profiling hot paths in Rust applications to identify CPU, memory, and concurrency bottlenecks.
  • Applying targeted optimization patterns such as allocation reduction, cache-friendly data layouts, and contention reduction.
  • Use Cases: accelerating latency-sensitive services, high-throughput pipelines, and low-latency libraries; suitable for end-to-end performance program improvements.

Quick Start

Profile a hot Rust path with flamegraph, apply a focused optimization, and re-measure to confirm performance gains.

Frequently Asked Questions about rust-performance

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

FAQPage Schema
How do I profile hot paths in a Rust application to find CPU and memory bottlenecks?

To reduce lock contention in Rust, apply targeted optimization patterns that minimize synchronization overhead. This approach improves throughput in high-performance pipelines by validating improvements across representative workloads using criterion benchmarks.

How do I benchmark Rust performance improvements after applying optimizations?

Benchmarking Rust performance improvements uses criterion benchmarks to re-measure hot paths after applying focused optimizations. This verifies performance gains by validating improvements across representative workloads and ensures safe, data-backed optimizations.

Can I use this approach for NUMA-aware optimization in compute-heavy Rust microservices?

Yes, NUMA-aware optimization is supported for compute-heavy Rust microservices and libraries. It satisfies requirements for targeted allocations, data layout choices, and lock contention reduction across representative workloads to accelerate latency-sensitive services.

What's the best way to reduce memory allocations in high-throughput Rust pipelines?

Reducing memory allocations in high-throughput Rust pipelines involves applying targeted optimization patterns identified via heaptrack profiling. This data-backed approach locates hot paths, measures impact, and drives safe optimizations for end-to-end performance improvements.

Why does my Rust service have latency spikes and how can I identify the root cause?

Latency spikes in Rust services often stem from CPU, memory, or concurrency bottlenecks in hot paths. Profiling with tools like perf and flamegraph identifies these bottlenecks, enabling targeted allocations and cache-friendly data layouts to resolve the issue.