performance issues during startup
Categories
(Core :: Performance: Responsiveness, enhancement, P2)
Tracking
()
| Performance Impact | medium |
People
(Reporter: mspehar, Unassigned)
Details
(Keywords: perf:responsiveness)
Attachments
(3 files)
User Agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:80.0) Gecko/20100101 Firefox/80.0
Steps to reproduce:
- Install following extensions on both firefox and chromium:
- ublock origin
- decentraleyes
- privacy badger
- cookie autodelete
- multi-account containers
- gnome shell extension
- Don't touch my tabs! (rel=noopener)
- know your exit
(all except two extensions are recommended, which means they satisfy both, security and performance requirements)
- open website e.g. https://github.com/rust-lang/rls
- after page is fully loaded, close firefox
- start firefox where it should restore the only tab
Actual results:
long time (~4s) between starting firefox and time cached webpage is shown on the screen. video attached for demonstration.
tested on ubuntu 20.04, xorg and wayland sessions.
if important to note, laptop is haswell based, 8gb ram, ssd.
Expected results:
page should be shown in ~1s, same as when no extensions are installed
Comment 1•5 years ago
|
||
Bugbug thinks this bug should belong to this component, but please revert this change in case of error.
Updated•5 years ago
|
Comment 2•5 years ago
|
||
If you can share a profile of the startup using perf like this it would be great. Though this should be reproducible per your comments so maybe it's not required.
start firefox only (as seen in the video) and close with alt-f4
starting firefox, after the page has been loaded crate a new tab and open this bug report
maybe two additional notes, i've changed two options:
- enabled privacy.firstparty.isolate
- enabled gfx.webrender.all
Updated•5 years ago
|
Comment 6•5 years ago
|
||
Mike, have you looked at addon impact on desktop startup?
Updated•5 years ago
|
Comment 7•5 years ago
|
||
Hi acreskey, sorry for the delay.
Yes, we have done some measurement about how add-ons can impact startup. For example, we have a Talos test that benchmarks time to about:home startup paint with 5 popular add-ons from AMO installed (startup_about_home_paint_realworld_webextensions). We do know that certain add-ons (particularly ones that use blocking WebRequest) will block the first network request until they've finished initializing, which can impact perceived startup time. A number of add-ons in that list likely using blocking WebRequest.
One thing that would be helpful is a performance profile via the Gecko Profiler (https://developer.mozilla.org/en-US/docs/Mozilla/Performance/Reporting_a_Performance_Problem). If you make sure you have the profiler toolbar button enabled, you can make sure startup profiling is enabled by setting the MOZ_PROFILER_STARTUP environment variable to "1" before launching Firefox. Once it's launched and you finally see the initial tab, dump the profile via Ctrl-Shift-2, and then please Publish and share here.
I suspect we'll find that one of the WebExtensions with blocking WebRequest is taking its sweet time initializing. If we can identify which one it is, that'll help.
Updated•5 years ago
|
Comment 9•5 years ago
|
||
I see a big pause in the WebExtension process from HTTPS Everywhere. If you disable that add-on temporarily, does that make a difference?
| Reporter | ||
Comment 10•5 years ago
|
||
even when all extensions are disabled, it still feels laggy
Updated•3 years ago
|
Updated•3 years ago
|
Comment 12•2 years ago
|
||
Redirect a needinfo that is pending on an inactive user to the triage owner.
:fdoty, since the bug has recent activity, could you have a look please?
For more information, please visit BugBot documentation.
Comment 13•2 years ago
|
||
The issue remains unconfirmed and we no longer have access to the original reporter. I'm going to close this bug. If you feel this has been done in error, please reopen with additional details - or open a new bug which references this one.
Updated•8 months ago
|
Description
•