# Performance Test Instructions — homepage-sections A static site: there is no load or throughput testing. Performance means page-load performance, measured with Lighthouse CI. ```bash cd web pnpm build pnpm lighthouse # mobile (lighthouserc.cjs) then desktop (lighthouserc.desktop.cjs) ``` ## Budgets - **Performance**: - homepage on mobile ≥ 0.8. This is a temporary budget until responsive images and prerendering arrive (NFR-P-01). - every other page on mobile ≥ 0.9. - every page on desktop ≥ 0.9. - **Accessibility and best practices**: 1.0 on every page - **SEO**: the basic audits on every page; `is-crawlable` only on indexed pages ## Measuring reliably - Measure the **production build**. The Vite dev server (`pnpm dev`) serves 137 unbundled modules and scores ~0.55 on desktop and ~0.36 on mobile, which says nothing about the site. - Lighthouse throttles the CPU relative to the machine's own speed. A busy machine (a game, a dev server rebuilding) scatters the homepage mobile score between 0.68 and 0.84. Compare `environment.benchmarkIndex` in the report: when it is far below ~3500–4200, rerun on a quiet machine. - In CI the Raspberry Pi scores 30–40 points lower, so performance is reported there and does not block (`LIGHTHOUSE_PERFORMANCE=warn`).