From 63d519e38505f2b3e0bdafe8732605c0aae3a29b Mon Sep 17 00:00:00 2001 From: Matysh Date: Mon, 7 Sep 2026 11:24:33 +0300 Subject: [PATCH] test: isolate PDF performance budget Issue: #482 User-Visible: no --- test/pdf-scene.test.mjs | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/test/pdf-scene.test.mjs b/test/pdf-scene.test.mjs index 005247b1..e4ca5a61 100644 --- a/test/pdf-scene.test.mjs +++ b/test/pdf-scene.test.mjs @@ -612,9 +612,10 @@ test('current 20-room large-house space builds from the visible geometry cache u return [room.id, area]; })); // The full suite runs test files concurrently on CI. Wall time counts periods when - // this worker is descheduled, while process.cpuUsage() also counts sibling test - // workers. Measure only this worker thread so the agreed 200 ms product budget is - // neither weakened nor made dependent on unrelated parallel tests. + // this worker is descheduled, while process.cpuUsage() also includes background + // V8 threads in this test-file process. Measure only the current JS worker thread + // so the agreed 200 ms product budget is neither weakened nor made dependent on + // unrelated parallel work. const started = process.threadCpuUsage(); let contourCacheReads = 0; let areaCacheReads = 0;