# Performance Analysis

> Performance profiling, benchmarking, and optimization. Use when: slow operations, regressions, memory pressure, release validation. Skip when: early prototyping, documentation, configuration-only changes.

- Skill: `ruvnet/performance-analysis-2` (Agent Skill)
- Install (CLI): `npx skillmds@latest add ruvnet/performance-analysis-2`
- Raw SKILL.md: https://api.skillmd.com/api/skills/ruvnet/performance-analysis-2/raw
- Safety review: pending
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: Docs & Writing
- Author: ruvnet (https://skillmd.com/u/ruvnet)
- Updated: 2026-09-22
- Page: https://skillmd.com/skills/ruvnet/performance-analysis-2

---


# Performance Analysis Skill

## Purpose
Measure before optimizing and preserve reproducible benchmark evidence.

## Commands

### Run Benchmark Suite

```bash
npx @claude-flow/cli performance benchmark --suite all
```

### Profile Code

```bash
npx @claude-flow/cli performance profile --target ./src
```

## Best Practices
1. Capture a baseline before changing code
2. Use identical inputs and environments
3. Report variance, not only the fastest result
4. Re-run correctness tests after optimization

