e2e:built runs the performance budgets with both bundlers; Turbopack numbers after

Co-Authored-By: Claude Opus 5.5 <[email protected]>
This commit is contained in:
Radosław Smoliński
2026-12-01 13:53:57 +01:00
co-authored by Claude Opus 5.5
parent c6c5dfbcbf
commit 45c6dcd968
2 changed files with 758 additions and 0 deletions
+753
View File
@@ -0,0 +1,753 @@
{
"client": {
"mobile": {
"home": {
"bytes": {
"css": 12044,
"font": 209501,
"html": 19893,
"image": 9532,
"js": 181606,
"other": 24699
},
"cls": 0.036,
"fcp": 856,
"inp": 40,
"interaction": "PL",
"lcp": 856,
"lcpElement": {
"fetchpriority": "high",
"loading": "eager",
"src": "data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1600 1000'%3",
"tag": "img"
},
"load": 2446,
"profile": "mobile",
"renderBlocking": [
"/_next/static/chunks/1g084kp2cldky.css"
],
"requests": 26,
"scriptMs": 76,
"status": 200,
"tbt": 7,
"thirdParty": [],
"ttfb": 151,
"url": "/pl",
"runs": 3
},
"page": {
"bytes": {
"css": 12044,
"font": 209501,
"html": 17126,
"image": 8451,
"js": 181606,
"other": 13035
},
"cls": 0,
"fcp": 828,
"inp": 40,
"interaction": "PL",
"lcp": 828,
"lcpElement": {
"fetchpriority": "high",
"loading": "eager",
"src": "data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1600 1000'%3",
"tag": "img"
},
"load": 2446,
"profile": "mobile",
"renderBlocking": [
"/_next/static/chunks/1g084kp2cldky.css"
],
"requests": 21,
"scriptMs": 74,
"status": 200,
"tbt": 9,
"thirdParty": [],
"ttfb": 151,
"url": "/pl/o-nas",
"runs": 3
},
"archive": {
"bytes": {
"css": 12044,
"font": 209501,
"html": 16489,
"image": 5316,
"js": 181606,
"other": 18544
},
"cls": 0,
"fcp": 828,
"inp": 32,
"interaction": "PL",
"lcp": 828,
"lcpElement": {
"fetchpriority": null,
"loading": null,
"src": null,
"tag": "p"
},
"load": 2428,
"profile": "mobile",
"renderBlocking": [
"/_next/static/chunks/1g084kp2cldky.css"
],
"requests": 22,
"scriptMs": 69,
"status": 200,
"tbt": 3,
"thirdParty": [],
"ttfb": 151,
"url": "/pl/blog",
"runs": 3
},
"post": {
"bytes": {
"css": 12044,
"font": 209501,
"html": 17079,
"image": 5316,
"js": 181606,
"other": 13035
},
"cls": 0,
"fcp": 832,
"inp": 32,
"interaction": "PL",
"lcp": 832,
"lcpElement": {
"fetchpriority": null,
"loading": null,
"src": null,
"tag": "p"
},
"load": 2432,
"profile": "mobile",
"renderBlocking": [
"/_next/static/chunks/1g084kp2cldky.css"
],
"requests": 21,
"scriptMs": 69,
"status": 200,
"tbt": 4,
"thirdParty": [],
"ttfb": 151,
"url": "/pl/blog/zanim-kupisz-dzialke",
"runs": 3
},
"caseStudy": {
"bytes": {
"css": 12044,
"font": 209501,
"html": 16598,
"image": 4372,
"js": 181606,
"other": 13035
},
"cls": 0,
"fcp": 848,
"inp": 32,
"interaction": "PL",
"lcp": 848,
"lcpElement": {
"fetchpriority": null,
"loading": null,
"src": null,
"tag": "p"
},
"load": 2424,
"profile": "mobile",
"renderBlocking": [
"/_next/static/chunks/1g084kp2cldky.css"
],
"requests": 20,
"scriptMs": 67,
"status": 200,
"tbt": 5,
"thirdParty": [],
"ttfb": 151,
"url": "/pl/realizacje/dom-pod-lasem",
"runs": 3
},
"form": {
"bytes": {
"css": 12044,
"font": 209501,
"html": 16322,
"image": 0,
"js": 181606,
"other": 13035
},
"cls": 0,
"fcp": 836,
"inp": 40,
"interaction": "PL",
"lcp": 836,
"lcpElement": {
"fetchpriority": null,
"loading": null,
"src": null,
"tag": "p"
},
"load": 2398,
"profile": "mobile",
"renderBlocking": [
"/_next/static/chunks/1g084kp2cldky.css"
],
"requests": 18,
"scriptMs": 63,
"status": 200,
"tbt": 2,
"thirdParty": [],
"ttfb": 151,
"url": "/pl/wycena",
"runs": 3
},
"showcase": {
"bytes": {
"css": 12044,
"font": 209501,
"html": 36959,
"image": 2016,
"js": 209875,
"other": 24814
},
"cls": 0,
"fcp": 860,
"inp": 40,
"interaction": "PL",
"lcp": 860,
"lcpElement": {
"fetchpriority": "high",
"loading": "eager",
"src": "data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1600 1000'%3",
"tag": "img"
},
"load": 2411,
"profile": "mobile",
"renderBlocking": [
"/_next/static/chunks/1g084kp2cldky.css"
],
"requests": 25,
"scriptMs": 125,
"status": 200,
"tbt": 5,
"thirdParty": [
"https://challenges.cloudflare.com"
],
"ttfb": 151,
"url": "/pl/bloki",
"runs": 3
},
"notFound": {
"bytes": {
"css": 12044,
"font": 209501,
"html": 7739,
"image": 0,
"js": 181606,
"other": 68171
},
"cls": 0.319,
"fcp": 2332,
"inp": 40,
"interaction": "PL",
"lcp": 2332,
"lcpElement": {
"fetchpriority": null,
"loading": null,
"src": null,
"tag": "p"
},
"load": 2680,
"profile": "mobile",
"renderBlocking": [],
"requests": 27,
"scriptMs": 131,
"status": 404,
"tbt": 0,
"thirdParty": [],
"ttfb": 151,
"url": "/pl/nie-ma-takiej-strony",
"runs": 3
}
},
"desktop": {
"home": {
"bytes": {
"css": 12044,
"font": 209501,
"html": 19893,
"image": 9274,
"js": 181606,
"other": 71345
},
"cls": 0.001,
"fcp": 296,
"inp": 40,
"interaction": "PL",
"lcp": 296,
"lcpElement": {
"fetchpriority": null,
"loading": null,
"src": null,
"tag": "h1"
},
"load": 453,
"profile": "desktop",
"renderBlocking": [
"/_next/static/chunks/1g084kp2cldky.css"
],
"requests": 33,
"scriptMs": 28,
"status": 200,
"tbt": 0,
"thirdParty": [],
"ttfb": 41,
"url": "/pl",
"runs": 3
},
"page": {
"bytes": {
"css": 12044,
"font": 209501,
"html": 17126,
"image": 10676,
"js": 181606,
"other": 47889
},
"cls": 0,
"fcp": 296,
"inp": 40,
"interaction": "PL",
"lcp": 296,
"lcpElement": {
"fetchpriority": "high",
"loading": "eager",
"src": "/_next/image?url=http%3A%2F%2Flocalhost%3A3370%2Fapi%2Fmedia%2Ffile%2Flibrary.webp&w=750&q=75",
"tag": "img"
},
"load": 464,
"profile": "desktop",
"renderBlocking": [
"/_next/static/chunks/1g084kp2cldky.css"
],
"requests": 28,
"scriptMs": 18,
"status": 200,
"tbt": 0,
"thirdParty": [],
"ttfb": 41,
"url": "/pl/o-nas",
"runs": 3
},
"archive": {
"bytes": {
"css": 12044,
"font": 209501,
"html": 16489,
"image": 4809,
"js": 181606,
"other": 64648
},
"cls": 0,
"fcp": 296,
"inp": 32,
"interaction": "PL",
"lcp": 296,
"lcpElement": {
"fetchpriority": null,
"loading": null,
"src": null,
"tag": "p"
},
"load": 461,
"profile": "desktop",
"renderBlocking": [
"/_next/static/chunks/1g084kp2cldky.css"
],
"requests": 30,
"scriptMs": 17,
"status": 200,
"tbt": 0,
"thirdParty": [],
"ttfb": 41,
"url": "/pl/blog",
"runs": 3
},
"post": {
"bytes": {
"css": 12044,
"font": 209501,
"html": 17079,
"image": 4809,
"js": 181606,
"other": 47889
},
"cls": 0,
"fcp": 288,
"inp": 40,
"interaction": "PL",
"lcp": 288,
"lcpElement": {
"fetchpriority": null,
"loading": null,
"src": null,
"tag": "p"
},
"load": 458,
"profile": "desktop",
"renderBlocking": [
"/_next/static/chunks/1g084kp2cldky.css"
],
"requests": 27,
"scriptMs": 17,
"status": 200,
"tbt": 0,
"thirdParty": [],
"ttfb": 41,
"url": "/pl/blog/zanim-kupisz-dzialke",
"runs": 3
},
"caseStudy": {
"bytes": {
"css": 12044,
"font": 209501,
"html": 16598,
"image": 9278,
"js": 181606,
"other": 47889
},
"cls": 0,
"fcp": 300,
"inp": 40,
"interaction": "PL",
"lcp": 300,
"lcpElement": {
"fetchpriority": null,
"loading": null,
"src": null,
"tag": "h1"
},
"load": 464,
"profile": "desktop",
"renderBlocking": [
"/_next/static/chunks/1g084kp2cldky.css"
],
"requests": 28,
"scriptMs": 18,
"status": 200,
"tbt": 0,
"thirdParty": [],
"ttfb": 41,
"url": "/pl/realizacje/dom-pod-lasem",
"runs": 3
},
"form": {
"bytes": {
"css": 12044,
"font": 209501,
"html": 16322,
"image": 0,
"js": 181606,
"other": 47889
},
"cls": 0,
"fcp": 292,
"inp": 40,
"interaction": "PL",
"lcp": 292,
"lcpElement": {
"fetchpriority": null,
"loading": null,
"src": null,
"tag": "p"
},
"load": 453,
"profile": "desktop",
"renderBlocking": [
"/_next/static/chunks/1g084kp2cldky.css"
],
"requests": 24,
"scriptMs": 17,
"status": 200,
"tbt": 0,
"thirdParty": [],
"ttfb": 41,
"url": "/pl/wycena",
"runs": 3
},
"showcase": {
"bytes": {
"css": 12044,
"font": 209501,
"html": 36959,
"image": 5263,
"js": 209852,
"other": 47889
},
"cls": 0,
"fcp": 304,
"inp": 40,
"interaction": "PL",
"lcp": 304,
"lcpElement": {
"fetchpriority": null,
"loading": null,
"src": null,
"tag": "p"
},
"load": 462,
"profile": "desktop",
"renderBlocking": [
"/_next/static/chunks/1g084kp2cldky.css"
],
"requests": 30,
"scriptMs": 36,
"status": 200,
"tbt": 0,
"thirdParty": [
"https://challenges.cloudflare.com"
],
"ttfb": 41,
"url": "/pl/bloki",
"runs": 3
},
"notFound": {
"bytes": {
"css": 12044,
"font": 209501,
"html": 7739,
"image": 0,
"js": 181606,
"other": 84453
},
"cls": 0,
"fcp": 488,
"inp": 40,
"interaction": "PL",
"lcp": 556,
"lcpElement": {
"fetchpriority": null,
"loading": null,
"src": null,
"tag": "h1"
},
"load": 493,
"profile": "desktop",
"renderBlocking": [],
"requests": 31,
"scriptMs": 31,
"status": 404,
"tbt": 0,
"thirdParty": [],
"ttfb": 41,
"url": "/pl/nie-ma-takiej-strony",
"runs": 3
}
},
"admin": {
"bytes": {
"css": 98914,
"font": 0,
"html": 23017,
"image": 0,
"js": 876243,
"other": 1690
},
"cls": 0,
"fcp": 1040,
"inp": null,
"interaction": null,
"lcp": 1040,
"lcpElement": {
"fetchpriority": null,
"loading": null,
"src": null,
"tag": "a"
},
"load": 966,
"profile": "desktop",
"renderBlocking": [
"/_next/static/chunks/1l9apu4iesvci.css",
"/_next/static/chunks/3c_6gydv624zb.css",
"/_next/static/chunks/3ebvnk7qs9043.css",
"/_next/static/chunks/2h0ajyj_brp--.css",
"/_next/static/chunks/3k6de-uhqm-in.css",
"/_next/static/chunks/1z_mbvpkjhpd5.css",
"/_next/static/chunks/2do7kfo662xwp.css"
],
"requests": 23,
"scriptMs": 413,
"status": 200,
"tbt": 0,
"thirdParty": [],
"ttfb": 90,
"url": "/admin/login",
"runs": 3
}
},
"date": "2026-12-01T12:46:51.984Z",
"label": "turbopack-after",
"method": "scripts/perf-measure.mjs + reference/e2e/perf-lab.mjs",
"runs": 3,
"server": {
"coldStartHealthMs": 991,
"coldStartFirstPageMs": 1014,
"firstPageMs": 22,
"ttfb_home": {
"median": 2.5,
"p95": 4.2
},
"ttfb_md": {
"median": 22.2,
"p95": 30.7
},
"ttfb_sitemap": {
"median": 1.1,
"p95": 1.4
},
"ttfb_llms": {
"median": 27.2,
"p95": 41.7
},
"render": {
"home": {
"medianMs": 41,
"queries": 24,
"queryMs": 0,
"byCollection": {
"globals": 27,
"media": 9,
"pages": 33,
"forms": 3
}
},
"page": {
"medianMs": 37.7,
"queries": 21,
"queryMs": 0,
"byCollection": {
"globals": 27,
"pages": 27,
"media": 6,
"forms": 3
}
},
"archive": {
"medianMs": 28.8,
"queries": 23,
"queryMs": 0,
"byCollection": {
"globals": 27,
"media": 6,
"pages": 27,
"forms": 3,
"posts": 6
}
},
"post": {
"medianMs": 29.9,
"queries": 26,
"queryMs": 0,
"byCollection": {
"globals": 27,
"media": 9,
"pages": 24,
"posts": 15,
"forms": 3
}
},
"caseStudy": {
"medianMs": 24.1,
"queries": 22,
"queryMs": 0,
"byCollection": {
"globals": 27,
"media": 6,
"pages": 21,
"casestudies": 9,
"forms": 3
}
},
"form": {
"medianMs": 22,
"queries": 19,
"queryMs": 0,
"byCollection": {
"globals": 27,
"media": 3,
"pages": 24,
"forms": 3
}
},
"showcase": {
"medianMs": 49.7,
"queries": 27,
"queryMs": 0,
"byCollection": {
"globals": 24,
"pages": 33,
"media": 12,
"forms": 6,
"posts": 6
}
},
"notFound": {
"medianMs": 19.3,
"queries": 20,
"queryMs": 0,
"byCollection": {
"globals": 27,
"pages": 27,
"media": 6
}
},
"md": {
"medianMs": 32,
"queries": 16,
"queryMs": 0,
"byCollection": {
"globals": 4,
"media": 5,
"pages": 6,
"forms": 1
}
},
"sitemap": {
"medianMs": 4,
"queries": 0,
"queryMs": 0,
"byCollection": {}
},
"llms": {
"medianMs": 40,
"queries": 22,
"queryMs": 0,
"byCollection": {
"globals": 4,
"media": 3,
"pages": 7,
"posts": 4,
"casestudies": 4
}
},
"llmsFull": {
"medianMs": 62,
"queries": 38,
"queryMs": 0,
"byCollection": {
"globals": 6,
"media": 9,
"pages": 13,
"forms": 2,
"posts": 4,
"casestudies": 4
}
}
},
"rssMiB": 467
}
}
+5
View File
@@ -17,6 +17,9 @@
* and e2e/sign-in-look.spec.ts (the sign-in panel in the first HTML, on a phone, the language links, the 2FA screen),
* e2e/sign-in-answers.spec.ts (1.17.2: a locked staff account answers like a wrong password; the panel actions refuse
* another origin).
* 4. e2e/performance.spec.ts (1.18.0): the performance budgets — LCP, CLS, Total Blocking Time, the response to a tap,
* JS / CSS / font bytes, requests, render-blocking resources and third parties before consent for every page type,
* on a throttled phone and a desktop, and the MongoDB queries of one render (docs/performance.md).
*
* Needs what the reference site's "Production check" needs (reference/README.md): reference/.env with a local,
* seeded database and the E2E_* test admin. The test admins are reset by Playwright's global setup.
@@ -95,6 +98,8 @@ for (const bundler of bundlers) {
}
console.log(`[e2e:built] ✓ ${bundler}: no package manifest among ${files.length} public files`)
run(`${bundler}: the built site — late-staff spec, the mail service, closed doors, the published-files check, the client hints, consent, the sign-in look and the sign-in answers`, 'pnpm', ['exec', 'playwright', 'test', 'late-staff', 'mail-relay', 'closed-doors', 'smoke', 'sign-in-look', 'sign-in-answers', '--grep', 'late staff collection|the mail service|closed doors|no package.json is published|client hints|consent|sign-in look|locked staff account|panel actions'], site, { ALLOW_LOCAL_MEDIA: process.env.ALLOW_LOCAL_MEDIA ?? '1', CRON_SECRET: cronSecret, E2E_LATE_STAFF: '1' })
// the budgets are the built site's own numbers: they hold for each bundler (docs/performance.md, docs/dev/perf/)
run(`${bundler}: performance budgets — every page type on a phone and a desktop, queries per render`, 'pnpm', ['exec', 'playwright', 'test', 'performance'], site, { ALLOW_LOCAL_MEDIA: process.env.ALLOW_LOCAL_MEDIA ?? '1', E2E_LATE_STAFF: '1' })
passed.push(bundler)
}
console.log(`\n[e2e:built] passed: ${passed.join(' and ')}. (The reference site's .next now holds the ${passed.at(-1)} build WITH the fixture: rebuild with \`pnpm build\` there before other checks.)`)