Skip to content

Commit

Permalink
Use --single-process for faster Chrome automation
Browse files Browse the repository at this point in the history
I'm seeing about a 30% speed improvement with this set

On my machine:
- running runAll with priority 1
- with only the first 25 tests in the desktop config
- averaged across 5 runs
- average run time without --single-process: 563 seconds
- average run time with --single-process: 386 seconds

See: https://github.com/GoogleChrome/chrome-launcher/blob/main/docs/chrome-flags-for-tools.md
  • Loading branch information
montehurd committed May 9, 2024
1 parent 724e83b commit d285ee3
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion config/configCommon.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@ module.exports = {
engineOptions: {
headless: 'new',
args: [
'--no-sandbox'
'--no-sandbox',
'--single-process'
]
},
debug: false,
Expand Down

0 comments on commit d285ee3

Please sign in to comment.