Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[solved] Chromium - does it worth to compile ?
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

 
Reply to topic    Gentoo Forums Forum Index Desktop Environments
View previous topic :: View next topic  
Author Message
costel78
Guru
Guru


Joined: 20 Apr 2007
Posts: 402

PostPosted: Mon Aug 30, 2021 8:05 am    Post subject: [solved] Chromium - does it worth to compile ? Reply with quote

I wanted to try chromium again and I compiled it with gcc, no custom cflags. It took 4 hours and half, but the worst part of it are those results:
Code:
https://browserbench.org/Speedometer2.0/
Chrome:      116
Chromium:   46.97

https://web.basemark.com/result/?4d0lumwQ
Chrome:      935.76
Chromium:   448.31

https://browserbench.org/JetStream/
Chrome:      121.090
Chromium:   75.304

https://chromium.github.io/octane/
Chrome:      46041
Chromium:   27657


Both ver. 94.0.4606.20

I also tried chromium-bin and ungoogled-chromium-bin but did not start. Both failed this opengl errors, GPU is not usable, probably due to nvidia-drivers and lack of wayland useflag beeing set.
I did expect 10%-20% percent behind Google Chromium, but we are talking here about 40%-50%. It is huge.

Using clang and thin-lto it keep failed to compile, right now I am running a last attempt.

The question is: does it worth to use chromium ? Any hints or improvements ?
_________________
Sorry for my English. I'm still learning this language.


Last edited by costel78 on Wed Sep 01, 2021 6:31 am; edited 1 time in total
Back to top
View user's profile Send private message
mir3x
Guru
Guru


Joined: 02 Jun 2012
Posts: 455

PostPosted: Mon Aug 30, 2021 5:16 pm    Post subject: Reply with quote

I checked out of curiosity

Code:
https://browserbench.org/Speedometer2.0/
google-chrome - 116
firefox-bin - 105
chromium - 66.3
chrome - windows - 72.4
firefox - windows - 78.9

Must be worth bc google cripples it on purpose it seems :D

This looks like joke but lower must be better !!!!!!!!!!!!!
Windows chrome and firefox are for sure more fluent and sexy than linux versions.
_________________
Sent from Windows
Back to top
View user's profile Send private message
costel78
Guru
Guru


Joined: 20 Apr 2007
Posts: 402

PostPosted: Mon Aug 30, 2021 6:01 pm    Post subject: Reply with quote

Quote:
This looks like joke but lower must be better !!!!!!!!!!!!!

Nice one. :)

For now, chromium is affected by a bug when compiled with glibc-2.34
https://forums.gentoo.org/viewtopic-p-8644495.html?sid=fe1f3342f2f1163902b0f11cd3f3f1b5

chromium-glibc-2.34.patch allow to compile it with gcc, but, with clang and thin-lto, there is PTHREAD_STACK_MIN bug.
I'll wait for a patch or to be fixed upstream and test with clang and thin-lto.

Don't get me wrong, gcc compiled chromium is usable, I don't feel it as slower in normal use.
But Gentoo is about flexibility, control, and some speed.
Four hour and half to compile something which is half of performance doesn't sounds as Gentoo.

Thank you for benchmarks and confirmation!
_________________
Sorry for my English. I'm still learning this language.
Back to top
View user's profile Send private message
costel78
Guru
Guru


Joined: 20 Apr 2007
Posts: 402

PostPosted: Wed Sep 01, 2021 6:31 am    Post subject: Reply with quote

Well it seems that the problem is solved:

Code:
https://browserbench.org/Speedometer2.0/
Chrome:         116
Chromium:     46.97
Chromium2:   114.4

https://web.basemark.com/
Chrome:         935.76
Chromium:     448.31
Chromium2:   912.2

https://browserbench.org/JetStream/
Chrome:         121.090
Chromium:     75.304
Chromium2:   122.952

https://chromium.github.io/octane/
Chrome:         46041
Chromium:     27657
Chromium2:   44233


The problem is here:
Code:
<flag name="official">Enable Official build instead of Developer build.</flag>


It is unset by default, so if you are not paying attention, you got a 40-50% slower version. I presumed it is something like vanilla, without gentoo patches, but I was wrong.
The patch posted in the post above is working, but there is another error compiling chromium with clang and thin-lto.
_________________
Sorry for my English. I'm still learning this language.
Back to top
View user's profile Send private message
Goverp
Advocate
Advocate


Joined: 07 Mar 2007
Posts: 2008

PostPosted: Wed Sep 01, 2021 8:32 am    Post subject: Reply with quote

Do you know if the official build compiles faster or slower than the developer version?
_________________
Greybeard
Back to top
View user's profile Send private message
costel78
Guru
Guru


Joined: 20 Apr 2007
Posts: 402

PostPosted: Wed Sep 01, 2021 12:23 pm    Post subject: Reply with quote

I belive that the compile times are similar.

Code:
genlop -t chromium
 * www-client/chromium

     Sun Aug 29 14:27:53 2021 >>> www-client/chromium-94.0.4606.20
       merge time: 4 hours, 32 minutes and 8 seconds.

     Wed Sep  1 03:21:36 2021 >>> www-client/chromium-94.0.4606.20
       merge time: 4 hours, 3 minutes and 19 seconds.


There is a ~30 minutes difference, but first compile (-official) was done during day when I used the computer for work and the second during night with no X server.
_________________
Sorry for my English. I'm still learning this language.
Back to top
View user's profile Send private message
mir3x
Guru
Guru


Joined: 02 Jun 2012
Posts: 455

PostPosted: Wed Sep 01, 2021 2:24 pm    Post subject: Reply with quote

awesome find costel78

I found today something else:
jumbo build for every CMake project:

https://cmake.org/cmake/help/latest/prop_tgt/UNITY_BUILD.html

And I wonder why its not enabled for some projects ? I know many packages would fail but many would compile nicely.
_________________
Sent from Windows
Back to top
View user's profile Send private message
costel78
Guru
Guru


Joined: 20 Apr 2007
Posts: 402

PostPosted: Wed Sep 01, 2021 3:50 pm    Post subject: Reply with quote

Chromium had jumbobuild enabled, but drop it around ver. 80 in 2020.
Then I stoped using chromium.
_________________
Sorry for my English. I'm still learning this language.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Desktop Environments All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum