LinuxQuestions.org
Weather apps tell you it'll rain. Wyndo tells you when to go.
Home Forums Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Desktop
User Name
Password
Linux - Desktop This forum is for the discussion of all Linux Software used in a desktop context.

Notices


Reply
  Search this Thread
Old 12-10-2021, 12:21 AM   #1
fulalas
Member
 
Registered: Jun 2017
Posts: 266

Rep: Reputation: 126Reputation: 126
Why performance of Chromium-based browsers suck on Linux?


After using Opera for more than 2 decades (!), this week I was surprised by this new Firefox during a live distro testing.

I switched from Windows 7 to Porteus Linux in 2016 and I noticed that all Chromium-based browsers don't perform as well as they do on Windows. I tried to used the flag --disable-frame-rate-limit, which in fact improves scrolling performance, at least on high refresh rate monitors, but the caveat is that is uses too much CPU and sometimes it stutters.

Take a look at this comparison between default Opera 82 (no extra flags) and default Firefox 91.4 ESR while scrolling -- maybe people with 60 Hz monitor won't notice much difference, but in person the difference is night and day (I had to avoid YouTube for this one because it's a 120 FPS video):
https://www.mediafire.com/file/ssaxr...x-vs-Opera.mkv

Both Firefox and Opera enable smooth scroll by default and that's how I tested both. As I said before, running Opera with --disable-frame-rate-limit flag (which I didn't in the video above) improves scroll performance drastically, but it stutters sometimes and the CPU usage is much higher. Maybe that's the main problem in this regard: Firefox renders by default up to the monitor refresh rate, while Opera renders by default at 60 Hz and if you use the magic flag it goes to the sky, consuming CPU like a crazy.

I did the same test on Chromium 96 and Chrome 93 just to make sure but the result is basically the same. I have the following extensions installed (but removing them doesn't affect the test above): No Script Suite Lite (to block JS) and ad-block (uBlock Origin for Firefox while Opera has a built-in solution).

But wait because there's more! This is the CPU usage while running a 1080p 60 FPS YouTube video:
https://youtu.be/_ZmbSNQsQ7A

That's a huge difference! On Opera the test above is even worse than Chromium. Good luck trying to put GPU video acceleration to work on Chromium-based browsers and Nvidia cards...

Finally, memory consumption with just one web page loaded:
Firefox 91.4 ESR: 680 MB
Opera 82: 1433 MB

I repeated these tests on Lubuntu 21.04 and the results are pretty much the same.

-----

We all know that Firefox is far from being perfect. For developers sometimes it's a nightmare to debug, especially extensions. Also, lazy load feature is much slower than on Chromium-based browsers. Also, I'm not convinced by this new Proton UI. But, considering the whole package, at least on Linux and with high refresh monitors, the responsiveness of modern Firefox is my new reference -- I can't go back to Chromium-based browsers anymore. And, hey, bonus thing: Firefox is open source

My system just for reference:
Linux Porteus x64 dev build (based on Slackware current)
Nvidia GTX 1650 Super with proprietary driver 460.91.03
Intel i3 101050 4c/4t @ 4.4 GHz
16 GB RAM

Last edited by fulalas; 12-10-2021 at 07:01 PM.
 
Old 12-10-2021, 05:20 PM   #2
jailbait
LQ Guru
 
Registered: Feb 2003
Location: Virginia, USA
Distribution: Debian 12
Posts: 8,422

Rep: Reputation: 601Reputation: 601Reputation: 601Reputation: 601Reputation: 601Reputation: 601
Vivaldi

I would be interested in you making a similar test on the Vivaldi browser. Roughly 92% of the browser’s code is open source coming from Chromium, 3% is open source coming from Vivaldi, which leaves roughly 5% for Vivaldi's UI closed-source code.

https://repo.vivaldi.com
 
1 members found this post helpful.
Old 12-10-2021, 09:22 PM   #3
fulalas
Member
 
Registered: Jun 2017
Posts: 266

Original Poster
Rep: Reputation: 126Reputation: 126
@jailbait, thanks for your suggestion.

I've just tested everything in Vivaldi 5.0.2497.28 and the results are pretty much the same I had in Chromium: scroll performance is bad, YouTube videos take lots of CPU power and memory consumption is pretty high. Actually, there is one extra issue in Vivaldi: the .desktop file didn't work because it points to opt/vivaldi/vivaldi and not /opt/vivaldi/vivaldi -- I had to go to the terminal and call the runner script from inside /opt/vivaldi

I guess this is the current state of Chromium-based browsers on Linux

Last edited by fulalas; 12-11-2021 at 07:37 PM.
 
1 members found this post helpful.
Old 12-20-2021, 02:13 AM   #4
fulalas
Member
 
Registered: Jun 2017
Posts: 266

Original Poster
Rep: Reputation: 126Reputation: 126
It turns out that the issue is not entirely related to Chromium-based browsers. I found out that on KDE, Cinnamon and Gnome this issue doesn't happen.

It happens on LXDE, LXQt (they don't compositor by default) and Xfce (it has a compositor). What is weird is that even in these desktop environments by using Firefox there's no scroll performance issue.

Now, what KDE, Cinnamon and Gnome are doing to handle this properly is the one-million question
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
LXer: 7 Important Privacy-Preserving Extensions for Chromium-Based Browsers LXer Syndicated Linux News 0 09-01-2020 06:13 PM
LXer: Chromium and Firefox Web Browsers Are Now Installable as Snaps on Ubuntu Linux LXer Syndicated Linux News 0 03-17-2018 01:36 PM
Why new architectures can suck (or why I have been using windows a lot lately) MadmanRB General 8 04-13-2017 04:38 PM
Rant: MacRumors sucks, Mac people suck, Macs suck. lupusarcanus General 6 11-28-2010 05:26 AM
LXer: Comparison Between Linux Web Browsers - Review of 5 Linux Browsers LXer Syndicated Linux News 0 05-17-2008 01:21 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Desktop

All times are GMT -5. The time now is 05:33 PM.

Contact Us - Advertising Info - Rules - Privacy - Donations - Contributing Member - LQ Sitemap - "Weather apps tell you it'll rain. Wyndo tells you when to go."
Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions