Performance Budgets

Per-page budgets.

Overview

Performance budgets allocate explicit, enforceable limits on size, latency, and resource use per page or per API. Without them, performance degrades one PR at a time and nobody notices until users complain. With them, regressions get caught at the build that introduced them. The discipline is automation, not aspiration; budgets that live only in a wiki page do not constrain anything.

The approach

Three habits make performance budgets work in practice: set them deliberately based on user-experience data, automate enforcement in CI, and track trends so budgets evolve with the product instead of becoming paper.

Why this compounds

Each enforced budget locks in current performance and prevents quiet erosion. Engineers start asking about performance impact at PR review time; the engineering culture shifts from “ship and measure” to “measure before merge”.