[Github] Very slow page loading on reddit (around 4x slower than Chromium)
Categories
(Core :: JavaScript Engine, defect, P2)
Tracking
()
Performance Impact | high |
People
(Reporter: jgong, Unassigned)
References
(Blocks 1 open bug)
Details
(Keywords: perf:pageload)
Basic information
This bug created from an existing github issue
https://github.com/mozilla-mobile/fenix/issues/10042
Steps to Reproduce:
Navigate to https://www.reddit.com/r/btrfs/
Expected Results:
Loads in less than 8 seconds with posts (not just the page scaffolding).
Actual Results:
Loads page very slowly.
See profile: https://perfht.ml/2VIHK0U
More information
Device details:
Android device: Moto G XT1031
Fenix version: latest nightly from play store
Screenshot: (if relevant, please attach a screenshot or screencast to this bug report)
Profile URL: (follow the instructions at https://profiler.firefox.com/)
Basic systems configuration:
OS version:
GPU model:
Number of cores:
Amount of memory (RAM):
Thanks so much for your help.
Comment 2•4 years ago
|
||
Gonna go out on a limb and suggest this should probably be non-confidential, but let's move to moco-confidential first - at least then all our coworkers can see it.
Updated•4 years ago
|
Updated•4 years ago
|
Comment 3•4 years ago
|
||
Lots of time spent in the compositor. Jeff, do you have any ideas?
Comment 4•4 years ago
|
||
The compositor time is all spent grabbing screenshots. Please take a profile without screenshots.
It looks like the problem is JS though. There's a number of events that take >5 seconds to handle.
Comment 5•4 years ago
|
||
(In reply to Jeff Muizelaar [:jrmuizel] from comment #4)
The compositor time is all spent grabbing screenshots. Please take a profile without screenshots.
Redirecting needinfo to the original reporter.
Comment 6•4 years ago
|
||
Moving to JS component, as per Jeff's findings
Comment 7•4 years ago
|
||
Here is a profile without screenshots: https://share.firefox.dev/2XTxFzh
I had run into a bug with profiling on the device, which delayed my response here: https://github.com/mozilla-mobile/fenix/issues/10870
Comment 8•4 years ago
|
||
Triaging: Ted do you have time to take a look at this?
I took a good look at the profile but it doesn't show much that's useful. There's also a risk here that we're seeing not specific JS-performance slowness, but just some discrepancy in JS scheduling/compilation with respect to paints or other events that drive the main page activity forward.
Comment 9•4 years ago
|
||
This is partially another instance of Bug 1543776. In the Comment 7 profile I
see 2+ seconds spent on main-thread parsing and an atom-zone major-GC
happening.
When I compare the ICU init time between this profile and a Pixel3 device I
see a 10x slow-down. This is more than difference of CPU speed. The profiles
on these bugs seem to have very high sampler overhead (at least 40%) and are
not very useful. This should be remeasured with a lower sample rate (eg
10ms).
Comment 10•4 years ago
|
||
Re-profiled using a 10ms sample rate: https://share.firefox.dev/3cFpA6Y
Comment 11•4 years ago
|
||
Thanks for the new profile!
Updated•3 years ago
|
Updated•2 years ago
|
Updated•2 years ago
|
Comment 12•2 years ago
|
||
I tried this on the latest Firefox for Android and the performance was comparable to Chrome's and quite reasonable.
I don't see a specific problem, but if anyone can reproduce one please re-open.
Description
•