43 / 95 · 05 Performance & Chaos Engineering · Lighthouse CI: Enforcing Frontend Performance Budgets← prev⊞ allnext →☰ Read as one page
7.7Lighthouse CI Server: Tracking Trends
The LHCI server provides historical tracking, allowing you to see performance trends over time and catch gradual degradation that per-commit checks might miss:
# Install and start the LHCI server
npm install -g @lhci/cli @lhci/server
lhci server --storage.storageMethod=sql \
--storage.sqlDialect=postgres \
--storage.sqlConnectionUrl=postgresql://user:pass@db:5432/lhci
The server dashboard shows:
- Score trends over time (per URL, per metric)
- Comparison between branches (PR vs. main)
- Build-to-build diffs highlighting what changed
- Flagged regressions with commit attribution