Configuration
Test Options
Enable warmup iteration
CPU throttle rate
Test iterations
Network throttling
Profiler Thresholds
Max duration (ms)
Max rerenders
Other Thresholds
Min FPS (Chromium)
Max heap growth (MB)
Max LCP (ms)
Max INP (ms)
Max CLS
Generated Code
test.performance({
thresholds: {
base: {
profiler: {
'*': { duration: 500, rerenders: 20 },
},
},
},
})('test name', async ({ page, performance }) => {
await page.goto('/');
await performance.init();
});