ci: establish trusted quality baseline
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
# Performance baseline
|
||||
|
||||
Baseline date: 2026-07-14
|
||||
Baseline date: 2026-07-15
|
||||
|
||||
Next.js: 16.2.7 (Turbopack)
|
||||
|
||||
@@ -15,8 +15,12 @@ Run:
|
||||
|
||||
```bash
|
||||
pnpm perf:bundle
|
||||
pnpm perf:bundle:check
|
||||
```
|
||||
|
||||
`perf:bundle` generates the report without failing. `perf:bundle:check` also
|
||||
enforces the eager client JavaScript budgets used by CI.
|
||||
|
||||
The command uses the built-in Next.js Turbopack analyzer and writes:
|
||||
|
||||
- Interactive analysis: `.next/diagnostics/analyze/`
|
||||
@@ -24,19 +28,19 @@ The command uses the built-in Next.js Turbopack analyzer and writes:
|
||||
|
||||
Compressed sizes below are Turbopack module estimates. `Eager` is the route's synchronous client graph; `async` is code behind at least one dynamic import.
|
||||
|
||||
| Route | Before direct imports | Eager baseline | Change | Async baseline |
|
||||
| Route | Direct-import baseline | Current eager baseline | Change | Current async baseline |
|
||||
| --- | ---: | ---: | ---: | ---: |
|
||||
| `/splash` | 647.2 KiB | 646.2 KiB | -1.0 KiB | 14.3 KiB |
|
||||
| `/chat` | 670.5 KiB | 669.8 KiB | -0.7 KiB | 14.7 KiB |
|
||||
| `/subscription` | 660.1 KiB | 658.4 KiB | -1.7 KiB | 20.6 KiB |
|
||||
| `/tip` | 653.3 KiB | 651.6 KiB | -1.7 KiB | 20.6 KiB |
|
||||
| `/splash` | 646.2 KiB | 649.5 KiB | +3.3 KiB | 14.3 KiB |
|
||||
| `/chat` | 669.8 KiB | 672.8 KiB | +3.0 KiB | 14.7 KiB |
|
||||
| `/subscription` | 658.4 KiB | 662.0 KiB | +3.6 KiB | 20.6 KiB |
|
||||
| `/tip` | 651.6 KiB | 656.0 KiB | +4.4 KiB | 20.6 KiB |
|
||||
|
||||
The direct-import pass replaces root `@/utils` and `@/data/storage` barrel
|
||||
imports with symbol-level module paths. Turbopack already eliminated most unused
|
||||
barrel exports, so the immediate size reduction is modest. The explicit paths
|
||||
keep future barrel exports from silently expanding the client graph. Dexie and
|
||||
UA Parser remain in the analyzed routes through active feature dependencies and
|
||||
require separate feature-boundary work to remove from the eager graph.
|
||||
The earlier direct-import pass replaced root `@/utils` and `@/data/storage`
|
||||
barrel imports with symbol-level module paths. The current column captures the
|
||||
full application after the subsequent feature work and is the baseline enforced
|
||||
by the budgets below. Dexie and UA Parser remain in the analyzed routes through
|
||||
active feature dependencies and require separate feature-boundary work to
|
||||
remove from the eager graph.
|
||||
|
||||
Module loading baseline:
|
||||
|
||||
@@ -50,9 +54,9 @@ Module loading baseline:
|
||||
|
||||
The total potential graph can grow slightly because an async chunk has its own loader metadata. The primary budget is the eager graph and the audited module phase, not the sum of eager and unopened async code.
|
||||
|
||||
Initial warning budgets are intentionally above the baseline and are not enforced by CI:
|
||||
The initial budgets are intentionally above the baseline and are enforced by CI:
|
||||
|
||||
| Route | Eager client JS warning level |
|
||||
| Route | Eager client JS budget |
|
||||
| --- | ---: |
|
||||
| `/splash` | 650 KiB |
|
||||
| `/chat` | 675 KiB |
|
||||
|
||||
Reference in New Issue
Block a user