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
Why does it takes longer to Servo to load firefox.com than Firefox? #10425
To load firefox.com in Firefox, it takes 2.4s (performance.timing.loadEventEnd - performance.timing.navigationStart). In Servo, it takes 10s (time between iframe.src = "http://firefox.com" and mozbrowserloadend).
Do we know the reasons?
I guess the lack of speculative HTML parsing (#3847) is one of the reasons. Anything else?
It should be speculative HTML parsing and fetching. If a website has a bunch of external scripts (e.g. twitter) it takes forever to load since the scripts load one after another with fetches in between. Firefox probably fetches them all in parallel whilst loading.
We know one concrete reason, which is that we start loading resources later due to not having speculative HTML parsing.
Another reason is that if you have a warm cache in Firefox, you're probably skipping a lot of the network requests outright, and Servo currently has no cache.
There are probably more reasons, but right now we don't know what they are.
I am hoping @nox's work getting the performance tab up in devtools will help us diagnose other issues.
@jdm reports that speculative HTML parsing is not the top issue on any profile he's investigated, so I think we should focus our efforts elsewhere. It's not yet the lowest hanging fruit.
Activity
frewsxcv commentedon Apr 6, 2016
Relevant to #8940
Manishearth commentedon Apr 6, 2016
It should be speculative HTML parsing and fetching. If a website has a bunch of external scripts (e.g. twitter) it takes forever to load since the scripts load one after another with fetches in between. Firefox probably fetches them all in parallel whilst loading.
metajack commentedon Apr 6, 2016
We know one concrete reason, which is that we start loading resources later due to not having speculative HTML parsing.
Another reason is that if you have a warm cache in Firefox, you're probably skipping a lot of the network requests outright, and Servo currently has no cache.
There are probably more reasons, but right now we don't know what they are.
I am hoping @nox's work getting the performance tab up in devtools will help us diagnose other issues.
paulrouget commentedon Apr 6, 2016
What about
window.performance.timing? That would help a lot.Filed #10428
paulrouget commentedon May 6, 2016
http://firefox.com redirects to https://firefox.com. So I suspect #11008 (comment)
jdm commentedon May 6, 2016
Good catch! My profile trace reports 4.5s spent in the same step that #11008 hangs in.
jdm commentedon May 6, 2016
That said, on subsequent runs I can't reproduce the long connection time :/
metajack commentedon May 17, 2016
@jdm reports that speculative HTML parsing is not the top issue on any profile he's investigated, so I think we should focus our efforts elsewhere. It's not yet the lowest hanging fruit.
nox commentedon Jun 2, 2016
I cannot reproduce this anymore.
nox commentedon Jun 2, 2016
paulrouget commentedon Jun 2, 2016
Agreed. It's a lot better than before. Closing.