From 95e93c1c88f1d09ab7e052ca476d6949253fd634 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=B8=89=E5=92=B2=E6=99=BA=E5=AD=90=20Kevin=20Deng?= Date: Tue, 17 Sep 2024 17:15:58 +0800 Subject: [PATCH] chore(benchmark): 4x cpu slowdown --- benchmark/index.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/benchmark/index.js b/benchmark/index.js index 55656d709..7ea24ec1f 100644 --- a/benchmark/index.js +++ b/benchmark/index.js @@ -54,7 +54,7 @@ const { count: { type: 'string', short: 'c', - default: '50', + default: '30', }, noHeadless: { type: 'boolean', @@ -216,6 +216,7 @@ async function doBench(browser, isVapor) { console.info('\n\nmode:', mode) const page = await browser.newPage() + page.emulateCPUThrottling(4) await page.goto(`http://localhost:${port}/${mode}`, { waitUntil: 'networkidle0', })