]> git.ipfire.org Git - thirdparty/vuejs/core.git/commitdiff
chore(benchmark): 4x cpu slowdown
author三咲智子 Kevin Deng <sxzz@sxzz.moe>
Tue, 17 Sep 2024 09:15:58 +0000 (17:15 +0800)
committer三咲智子 Kevin Deng <sxzz@sxzz.moe>
Tue, 17 Sep 2024 09:15:58 +0000 (17:15 +0800)
benchmark/index.js

index 55656d709361ea4e14e28c648bb9ba5ef413eb92..7ea24ec1f66c76f4ab35fbb74f4efb36f443cd7a 100644 (file)
@@ -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',
   })