chore(benchmark): 4x cpu slowdown

This commit is contained in:
三咲智子 Kevin Deng 2024-09-17 17:15:58 +08:00
parent 3f1ee07fd2
commit 95e93c1c88
No known key found for this signature in database
1 changed files with 2 additions and 1 deletions

View File

@ -54,7 +54,7 @@ const {
count: { count: {
type: 'string', type: 'string',
short: 'c', short: 'c',
default: '50', default: '30',
}, },
noHeadless: { noHeadless: {
type: 'boolean', type: 'boolean',
@ -216,6 +216,7 @@ async function doBench(browser, isVapor) {
console.info('\n\nmode:', mode) console.info('\n\nmode:', mode)
const page = await browser.newPage() const page = await browser.newPage()
page.emulateCPUThrottling(4)
await page.goto(`http://localhost:${port}/${mode}`, { await page.goto(`http://localhost:${port}/${mode}`, {
waitUntil: 'networkidle0', waitUntil: 'networkidle0',
}) })