Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Perf numbers are much faster with a warm chrome #817

Closed
paulirish opened this issue Oct 23, 2016 · 7 comments
Closed

Perf numbers are much faster with a warm chrome #817

paulirish opened this issue Oct 23, 2016 · 7 comments

Comments

@paulirish
Copy link
Member

paulirish commented Oct 23, 2016

If there's no debugable chrome open (in the CLI case) then we launch one, wait for it, and then start profiling. It appears we're getting overhead from a new profile bootup that's having a big effect on the numbers.

Looking at https://example.com/ which is a superfast site..

Cold chrome:

image

Warm chrome:

Running chrome-debug and letting it sit for like 5 seconds.
image

On chat we discovered there's 200kb of data transferred on a cold chrome, seemingly for malware. In addition, there is likely some CPU cost overhead for initializing an empty profile.

Edit: I believe "downloading proxy config" is also responsible for a fair bit of it

I bet a little delay injected in there before the profiling starts would sort this out.

@brendankenny
Copy link
Member

(somewhat related to #775, though that's no longer outright affecting us)

@wardpeet
Copy link
Collaborator

we could let the cli sleep for a few seconds and show them a message. Warming up chrome :D

@addyosmani
Copy link
Member

I bet a little delay injected in there before the profiling starts would sort this out.

Ooof. Yes please.

@wardpeet
Copy link
Collaborator

wardpeet commented Oct 27, 2016

How many seconds are we talking about? + is there a way to see if chrome is cold or warm? Or just delay all the time?

@paulirish
Copy link
Member Author

Discussed this with @caseq and think proxy config is likely a concern here.

Best looking fix at the moment is as follows:

Load http://connectivitycheck.gstatic.com/hello_lighthouse and wait for load. Once loaded, proceed.
(Alternatively, could run our own webserver and put up a basic/blank page.)

@paulirish
Copy link
Member Author

confirmation that it's proxy config:

image

@patrickhulce
Copy link
Collaborator

tracked by #1982

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants