Skip to content

Commit

Permalink
chore(benchmark): 4x cpu slowdown
Browse files Browse the repository at this point in the history
  • Loading branch information
sxzz committed Sep 17, 2024
1 parent 3f1ee07 commit 95e93c1
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion benchmark/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ const {
count: {
type: 'string',
short: 'c',
default: '50',
default: '30',
},
noHeadless: {
type: 'boolean',
Expand Down Expand Up @@ -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',
})
Expand Down

0 comments on commit 95e93c1

Please sign in to comment.