From 4fe43d875d4755ee8b9513ea12c0d44083c00f12 Mon Sep 17 00:00:00 2001 From: neverland Date: Wed, 23 Sep 2026 20:32:45 +0800 Subject: [PATCH] perf: reduce benchmark cooldown to one second --- scripts/benchmark.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/benchmark.ts b/scripts/benchmark.ts index ae60166ec..7ca53844d 100644 --- a/scripts/benchmark.ts +++ b/scripts/benchmark.ts @@ -93,7 +93,7 @@ interface Column { data: string[] | null; } -const COOL_DOWN_TIME = 3000; +const COOL_DOWN_TIME = 1000; const defaultTimeouts = { startup: 60000, page: 60000, @@ -947,7 +947,7 @@ async function benchAllCases(): Promise { async (attempt) => { currentAttempt = attempt; const pending: PerfResultMap = {}; - if (attempt > 1) await coolDown(); + if (attempt > 1) await sleep(3000); if (unit === 'dev') await runDevBenchmark(buildTool, pending, measurement); else await runBuildBenchmark(buildTool, pending, measurement);