1.18.0 performance items: tests, the reference budget gate tightened (JS 195 kB, 404 without its exception, TTL check), docs (performance.md, AGENT.md, iapl-performance, module pages, api.md), changelog: what changes for an existing site
Co-Authored-By: Claude Opus 5.5 <[email protected]>
This commit is contained in:
co-authored by
Claude Opus 5.5
parent
d628839235
commit
f0127ac1b8
@@ -20,10 +20,11 @@ import { measureMedian } from './perf-lab.mjs'
|
||||
const runs = Number(process.env.PERF_RUNS ?? 1)
|
||||
|
||||
const budgets = perfBudgets({
|
||||
// measured 1.18.0: JS 184–188 kB, CSS 11–12 kB, fonts 209.5 kB (Inter + Fraunces, latin + latin-ext — four
|
||||
// preloaded files: see "fonts" in docs/performance.md), LCP 0.8 s on the phone, 0.3 s on the desktop
|
||||
desktop: { cssBytes: 16_000, fontBytes: 215_000, jsBytes: 200_000, lcp: 800, renderBlocking: 1, requests: 36, tbt: 50 },
|
||||
mobile: { cssBytes: 16_000, fontBytes: 215_000, jsBytes: 200_000, lcp: 1500, renderBlocking: 1, requests: 30, tbt: 100 },
|
||||
// measured 1.18.0 (docs/dev/perf/*-1180-after.json): JS 175–180 kB on a page without a form, 184–188 kB with one
|
||||
// (the form's code loads there only), CSS 11–12 kB, fonts 209.5 kB (Inter + Fraunces, latin + latin-ext; the
|
||||
// heading font not preloaded), LCP 0.74–0.82 s on the phone, 0.28–0.30 s on the desktop
|
||||
desktop: { cssBytes: 16_000, fontBytes: 215_000, jsBytes: 195_000, lcp: 800, renderBlocking: 1, requests: 36, tbt: 50 },
|
||||
mobile: { cssBytes: 16_000, fontBytes: 215_000, jsBytes: 195_000, lcp: 1500, renderBlocking: 1, requests: 30, tbt: 100 },
|
||||
})
|
||||
|
||||
/** One of each template (AGENTS.md → Site map), with what differs for that page. */
|
||||
|
||||
Reference in New Issue
Block a user