You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[Bug] Initial browser launch time inconsistent #4345
I do not know if this is GitHub Actions specific or an issue with Playwright but on smaller servers (1cpu) I have seen cold start take 15s. I thought I should report this in case it is a potential performance issue.
headless chromium is highly optimized for cold startup. Headful chrome is not. It writes a ton of things to disk and starts up all sorts of services. That combined with the nature of github actions makes me not surprised by the results you are getting. I agree that 10 seconds is a poor user experience. But I'd say use headless if you have any expectation of speed.
However it is possible (but unlieky) that we are idling waiting for some event that just sometimes happens late. For me to blame chromium, I'd want to compare headless webkit vs headless chromium launch times and see that webkit is never slow.
Activity
[-][Question] Initial browser launch time inconsistent[/-][+][Bug] Initial browser launch time inconsistent[/+]JoelEinbinder commentedon Nov 5, 2020
Note: these are running headful chromium.
headless chromium is highly optimized for cold startup. Headful chrome is not. It writes a ton of things to disk and starts up all sorts of services. That combined with the nature of github actions makes me not surprised by the results you are getting. I agree that 10 seconds is a poor user experience. But I'd say use headless if you have any expectation of speed.
However it is possible (but unlieky) that we are idling waiting for some event that just sometimes happens late. For me to blame chromium, I'd want to compare headless webkit vs headless chromium launch times and see that webkit is never slow.
yury-s commentedon Nov 10, 2020
Looks this is specific to the virtual machines that GHA uses, I tried it locally with forced cpu affinity and the numbers are very consistent:
~/pw-perf-1/152(master)$ taskset 1 node perf.js timing { launchBrowser: [ 343, 312, 355, 341, 350, 329, 348, 338, 337, 354 ], launchContext: [ 13, 11, 8, 11, 15, 11, 19, 7, 8, 8 ], launchPage: [ 243, 246, 231, 234, 231, 233, 228, 241, 236, 237 ], close: [ 67, 59, 66, 64, 96, 83, 86, 66, 96, 60 ], total: [ 666, 628, 660, 650, 692, 656, 681, 652, 677, 659 ] } launchBrowser: 340.7 launchContext: 11.1 launchPage: 236 close: 74.3 total: 662.1If I clear Linux caches first launch takes longer but the rest are very consistent: