Skip to content

Commit e5115c4

Browse files
committed
fix: avoid using over max CPU cores
1 parent f720131 commit e5115c4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/core/src/constants.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -206,8 +206,8 @@ export const defaultConfig: UserConfig = {
206206
workerCreationDelay: 500,
207207
retryLimit: 3,
208208
timeout: 5 * 60 * 1000, // wait for up to 5 minutes.
209-
// max concurrency is the amount of cpu cores we have
210-
maxConcurrency: Math.max(os.cpus().length - 1, 1),
209+
// lighthouse runs in its own process so we can use half of the available cores
210+
maxConcurrency: Math.max(Math.floor(os.cpus().length / 2), 1),
211211
skipDuplicateUrls: false,
212212
retryDelay: 2000,
213213
// Important, when using Lighthouse we want browser isolation.

0 commit comments

Comments
 (0)