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 從公開儲存庫中收錄這些內容。

檢舉或申請下架