Przeglądaj źródła

chore(benchmark): 4x cpu slowdown

三咲智子 Kevin Deng 1 rok temu
rodzic
commit
95e93c1c88
1 zmienionych plików z 2 dodań i 1 usunięć
  1. 2 1
      benchmark/index.js

+ 2 - 1
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',
   })