perf · git:20261026.8d01e18 · 2026-10-26 · sha256 608a419ac9a6fde2

perf git:20261026.8d01e18A

Immutable. This exact content never changes and is served at /api/v1/blob/608a419ac9a6fde2.

No tool to install first
claude plugin marketplace add https://markdownregistry.com/mp/a/art_cecbqgqbkovz5ype/608a419ac9a6fde29faf8023c5ae000cf1fc0369cb0fcc56cd7ff71a1e30773e.json

Then /plugin install perf@markdownregistry-cecbqgqbkovz5ype in Claude Code. It installs this exact version, the one graded A here, pinned to the commit it was graded at, and leaves it there.

---
name: perf
description: 性能排查 — 测量优先、瓶颈清单。
---

# perf

## 顺序

1. **测量**:profiler、慢查询日志、LCP/FCP(前端)
2. **假设** → 改一处 → 再测
3. 文档化前后数据

## 常见瓶颈

- N+1 查询;缺索引
- 同步 I/O 在 hot path
- 过大 bundle / 无 code split(见 `rules/tech/nextjs.mdc` SSR 节)

## 输出

- 瓶颈位置 file:line
- 建议与 trade-off;不 premature optimize