Closed Bug 1613473 Opened 5 years ago Closed 5 years ago

Fenix is slower to load nytimes.com then other browsers

Categories

(GeckoView :: General, defect, P2)

Unspecified
All
defect

Tracking

(Performance Impact:high)

RESOLVED WORKSFORME
Performance Impact high

People

(Reporter: jrmuizel, Unassigned)

References

(Blocks 1 open bug)

Details

(Keywords: perf:pageload)

Whiteboard: [qf]

I did a visual metrics run with browsertime and Fenix compared favorably to Fennec 68 (Pixel 3, 5 cold page loads, live site)

Fennec68
[2020-02-05 13:41:43] INFO: https://www.nytimes.com 0, backEndTime: 126ms (±3.54ms), firstPaint: 827ms (±3.48ms), firstVisualChange: 966ms (±5.47ms), DOMContentLoaded: 979ms (±28.68ms), Load: 7.70s (±471.58ms), speedIndex: 4421 (±13.32), perceptualSpeedIndex: 5985 (±37.58), contentfulSpeedIndex: 966 (±5.47), visualComplete85: 14.13s (±640.23ms), lastVisualChange: 14.13s (±640.23ms), rumSpeedIndex: 279 (±13.75) (5 runs)

Fenix beta
[2020-02-05 13:45:06] INFO: https://www.nytimes.com 0, backEndTime: 157ms (±10.76ms), firstPaint: 631ms (±134.02ms), firstVisualChange: 741ms (±136.02ms), DOMContentLoaded: 1.06s (±59.64ms), Load: 3.40s (±70.79ms), speedIndex: 4095 (±258.38), perceptualSpeedIndex: 5618 (±154.92), contentfulSpeedIndex: 741 (±136.02), visualComplete85: 11.75s (±183.97ms), lastVisualChange: 11.75s (±183.97ms), rumSpeedIndex: 346 (±73.14) (5 runs)

However when pasting in the URL, Fenix's performance may be worse than Chrome or Fennec 68's.
(Note, n=1)
https://streamable.com/3j0w8

Flags: needinfo?(ktaeleman)

Emily, what info do you want from Kris?

Flags: needinfo?(etoop)

Kris was in our triage meeting and said that he would take a look at this issue, so I tagged him. I should have written that as a summary, sorry.

Flags: needinfo?(etoop)

I was just going to make some profiles to see if there is anything obvious that we can do.

Non WR profile: https://perfht.ml/2UuNfBn
WR profile: https://perfht.ml/2OzlLa6

Jeff: does anything jump out to you?

Flags: needinfo?(ktaeleman) → needinfo?(jmuizelaar)

Most of the time is being spent in Javascript. We do spend some time doing main-thread paint in the non-wr profile that is eliminated with WebRender, but it's not that much of the total time.

It is worth noting that the original reporter claims that enabling WebRender made a big difference
" As it turns out, the issue on my end seemed to be WebRender being disabled. Since there's no way to enable it on the regular Firefox Preview build I didn't even know that could be a factor, but after I turned it on in the nightly build on about:config the page load speed increased dramatically and the browser stopped being unresponsive on loads. I'd say now the speed is more or less the same as Fennec, which is a huge improvement from what I was dealing with before. Thank you to all those who tried to help."

Flags: needinfo?(jmuizelaar)

However when pasting in the URL, Fenix's performance may be worse than Chrome or Fennec 68's.

acreskey, what does this mean? Can this be a front-end/application-level issue?


Note that Vesta has similarly long delays for page load when clicking google search results in https://github.com/mozilla-mobile/fenix/issues/7903. Without much other evidence than these, I'm concerned that a small minority of our users could be experiencing very poor performance that we may not be reproducing locally.

Flags: needinfo?(acreskey)

(In reply to Michael Comella (:mcomella) [needinfo or I won't see it] from comment #6)

However when pasting in the URL, Fenix's performance may be worse than Chrome or Fennec 68's.

acreskey, what does this mean? Can this be a front-end/application-level issue?


Note that Vesta has similarly long delays for page load when clicking google search results in https://github.com/mozilla-mobile/fenix/issues/7903. Without much other evidence than these, I'm concerned that a small minority of our users could be experiencing very poor performance that we may not be reproducing locally.

Michael, yes, I share this concern.
Browsertime navigates by setting window.location to the given URL. So it does measure most of the codepaths involved pageload, but it also misses some.
I'll leave my needInfo on this as I'll be trying to make it navigate in a more 'realistic' manner.
The hope is that it will either find additional problems, or else provide evidence that this isn't a problem.

I'll leave my needInfo on this as I'll be trying to make it navigate in a more 'realistic' manner.

Marc has a WIP where he triggers UI navigation via code built into the APK (link – Marc might pull this code out of the PR though): maybe you can sync up with Marc on that approach and if it'd work for y'all.

Blocks: 1604248
Flags: needinfo?(acreskey) → needinfo?(jmuizelaar)
Whiteboard: [qf] → [qf:p1:pageload]

I've never tried reproducing this. I was reporting on behalf of the reddit user.

Flags: needinfo?(jmuizelaar)

This may have been caused by this (now fixed) issue:
https://github.com/mozilla-mobile/android-components/issues/5880

My issue was implicitly linked to this bug and I can't reproduce the big slowdown when loading HN anymore. +1

Status: NEW → RESOLVED
Closed: 5 years ago
Resolution: --- → WORKSFORME
Performance Impact: --- → P1
Keywords: perf:pageload
Whiteboard: [qf:p1:pageload]
You need to log in before you can comment on or make changes to this bug.