chore(benchmark): 4x cpu slowdown
This commit is contained in:
parent
3f1ee07fd2
commit
95e93c1c88
|
@ -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',
|
||||||
})
|
})
|
||||||
|
|
Loading…
Reference in New Issue