パフォーマンスバジェットとは何か
パフォーマンスバジェットは、Time to Interactive、リクエスト数、転送される総バイト数など、ユーザーに見えるパフォーマンス指標の許容最大値を定義します。チームはこれらの限界に合意し、CI チェックがすべての build で強制します。バジェットを超えると build が失敗するか警告が出され、merge 前の修正を促します。
なぜ重要か
明示的な限界がなければ、パフォーマンスは全員の責任でありながら誰の責任でもなくなり、低下していく傾向があります。バジェットは目標を具体的にし、劣化を対処可能な失敗に変えます。
関連ガイド
What Is a Bundle Size Budget?A bundle size budget caps the byte size of compiled JavaScript or CSS bundles, failing the build when a chang…
What Is a Lighthouse Budget?A Lighthouse budget sets thresholds for performance metrics and resource sizes that a page must meet, failing…
What Is a Latency Budget?A latency budget is the maximum allowed time for an operation, divided among its stages so each component kno…