Benchmark

by affaan-mef648e01899bNo license275K starsListed Oct 8, 2026Updated Oct 8, 2026Repository updated 3 days ago

このスキルを使用して、パフォーマンスベースラインを測定し、PR前後の回帰を検出し、スタック代替案を比較します。

AI-generated overview

Measures performance baselines, detects regressions before and after changes, and compares stack alternatives.

What it does
This skill defines a benchmarking workflow with four modes: page performance (Core Web Vitals and resource sizes via a browser MCP), API performance (latency percentiles and load testing), build performance (cold build, HMR, test, type-check, lint, Docker times), and before/after comparison. It stores baselines as JSON under .ecc/benchmarks/ so they can be tracked in Git and shared by a team. It also describes integration with CI and with other skills for post-deploy monitoring and pre-ship checklists.
When to use it
Use it when measuring the performance impact of a pull request, setting a project performance baseline, investigating reports that something feels slow, verifying performance targets before launch, or comparing a stack against alternatives.
Requirements
Instructions only; no scripts are shipped. A browser MCP is referenced for page metrics, and API, build, and comparison modes assume the relevant endpoints, build tooling, and Git-tracked repository are available.

ベンチマーク — パフォーマンスベースラインと回帰検出

使用時期

  • PR前後にパフォーマンスへの影響を測定
  • プロジェクトのパフォーマンスベースラインを設定
  • ユーザーが「遅く感じる」と報告したとき
  • ローンチ前 — パフォーマンスターゲットを満たしていることを確認
  • スタックを代替案と比較

動作方法

モード1:ページパフォーマンス

ブラウザMCPを介してリアルブラウザメトリクスを測定:

1. 各ターゲットURLに移動2. Core Web Vitalsを測定:   - LCP (Largest Contentful Paint) — ターゲット < 2.5s   - CLS (Cumulative Layout Shift) — ターゲット < 0.1   - INP (Interaction to Next Paint) — ターゲット < 200ms   - FCP (First Contentful Paint) — ターゲット < 1.8s   - TTFB (Time to First Byte) — ターゲット < 800ms3. リソースサイズを測定:   - 合計ページウェイト(ターゲット < 1MB)   - JSバンドルサイズ(ターゲット < 200KBgzipped)   - CSSサイズ   - 画像ウェイト   - サードパーティスクリプトウェイト4. ネットワークリクエストをカウント5. レンダリングブロッキングリソースをチェック

モード2:APIパフォーマンス

APIエンドポイントをベンチマーク:

1. 各エンドポイントに100回ヒット2. 測定:p50、p95、p99レイテンシ3. トラック:レスポンスサイズ、ステータスコード4. ロード下でテスト:10個の同時リクエスト5. SLAターゲットと比較

モード3:ビルドパフォーマンス

開発フィードバックループを測定:

1. コールドビルド時間2. ホットリロード時間(HMR)3. テストスイート期間4. TypeScriptチェック時間5. Lint時間6. Dockerビルド時間

モード4:前後の比較

変更前後に実行して影響を測定:

/benchmark baseline    # 現在のメトリクスを保存# ... 変更を加える .../benchmark compare     # ベースラインと比較

出力:

| Metric | Before | After | Delta | Verdict ||--------|--------|-------|-------|---------|| LCP | 1.2s | 1.4s | +200ms | WARNING: WARN || Bundle | 180KB | 175KB | -5KB | ✓ BETTER || Build | 12s | 14s | +2s | WARNING: WARN |

出力

.ecc/benchmarks/にJSONとしてベースラインを保存。Gitで追跡されるため、チームはベースラインを共有します。

統合

  • CI:すべてのPRで/benchmark compareを実行
  • /canary-watchとペアリングしてデプロイ後の監視
  • /browser-qaとペアリングして完全な出荷前チェックリスト

Source and attribution

Source:affaan-m/eccindocs/ja-JP/skills/benchmarkat commitef648e0

License: No license

Content belongs to its original authors. SourceWeft indexes it from a public repository.

Report or request removal

Benchmark Agent Skill | SourceWeft