bench
Run performance benchmarks and profile analysis for pi-minions. Use when asked to analyze performance, find bottlenecks, profile the extension, or optimize code.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Run performance benchmarks and profile analysis for pi-minions. Use when asked to analyze performance, find bottlenecks, profile the extension, or optimize code.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
Write and audit behaviour-based tests for pi-minions. Use when writing new tests or reviewing existing ones to ensure they verify expected outcomes, not implementation details.
Run end-to-end tests for the pi-minions extension. Discovers test files, executes each one, validates outcomes, and writes a JSON report.
基于 SOC 职业分类
| name | bench |
| description | Run performance benchmarks and profile analysis for pi-minions. Use when asked to analyze performance, find bottlenecks, profile the extension, or optimize code. |
Run benchmarks and write analysis to tmp/profiles/analysis.md.
ALWAYS use when asked about:
Do NOT use for unit tests or functional bugs.
Run benchmarks:
npm run test:bench
Generate report:
npm run profile
Write analysis to tmp/profiles/analysis.md.
# Performance Analysis: YYYY-MM-DD
## Summary
- Profiles: X CPU, X heap
- Critical: X, Warning: X
## Benchmarks
AgentTree:
- add 1000 nodes: X ops/sec (Y ms) - STATUS
- getTotalUsage: X ops/sec (Y ms) - STATUS
ResultQueue:
- add 10000 results: X ops/sec (Y ms) - STATUS
- Memory: unbounded Map at src/queue.ts:10
Logger:
- 1000 messages: X ops/sec (Y ms) - STATUS
- Sync I/O: appendFileSync at src/logger.ts:23
Spinner:
- 80ms interval: ~62/sec - STATUS
- Location: src/tools/spawn.ts:196
## Profile
- Script time: X ms, GC: X ms (X%), Idle: X ms (X%)
- Top hotspot: function (X ms, Y%)
## Issues
Critical:
1. description at file:line - fix
Warning:
1. description at file:line - fix
## Recommendations
| Priority | Issue | Location | Action |
|----------|-------|----------|--------|
| P0 | desc | file:line | action |
| P1 | desc | file:line | action |
ALWAYS:
NEVER: