Performance Analysis

ruvnet/ruflo/v3/@claude-flow/codex/.agents/skills/performance-analysis

作者 ruvnet5f709e36799274be6bb68fff69090bdbc8621220无许可证74K 个星标收录于 2026年10月9日更新于 2026年10月9日仓库今天更新

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

AI 生成的概览

指导性能剖析、基准测试与优化,并强调可复现的测量实践。

功能
该技能提供在优化软件性能之前先进行测量的操作说明。它记录了运行基准测试套件和剖析源代码目录的命令,并列出最佳实践,例如先采集基线、使用相同的输入与环境、报告方差而非仅报告最快结果,以及在优化后重新运行正确性测试。它产出的是指导与基准测试证据,而不是代码改动。
适用场景
适用于操作变慢、出现性能回退或内存压力,以及需要验证发布版本的场景。不适用于早期原型开发、文档编写或仅涉及配置的改动。
运行要求
不附带脚本,仅为说明文档。文档中的命令通过 npx 调用外部工具 @claude-flow/cli,因此需要 Node.js 以及用于获取该软件包的网络访问。

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

来源与署名

来源:ruvnet/ruflo位于v3/@claude-flow/codex/.agents/skills/performance-analysis提交5f709e3

许可证: 无许可证

内容归原作者所有。SourceWeft 从公开仓库中收录这些内容。

举报或申请下架