View previous topic :: View next topic |
Author |
Message |
costel78 Guru
Joined: 20 Apr 2007 Posts: 402
|
Posted: Mon Aug 30, 2021 8:05 am Post subject: [solved] Chromium - does it worth to compile ? |
|
|
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 |
|
|
mir3x Guru
Joined: 02 Jun 2012 Posts: 455
|
Posted: Mon Aug 30, 2021 5:16 pm Post subject: |
|
|
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
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 |
|
|
costel78 Guru
Joined: 20 Apr 2007 Posts: 402
|
Posted: Mon Aug 30, 2021 6:01 pm Post subject: |
|
|
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 |
|
|
costel78 Guru
Joined: 20 Apr 2007 Posts: 402
|
Posted: Wed Sep 01, 2021 6:31 am Post subject: |
|
|
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 |
|
|
Goverp Advocate
Joined: 07 Mar 2007 Posts: 2008
|
Posted: Wed Sep 01, 2021 8:32 am Post subject: |
|
|
Do you know if the official build compiles faster or slower than the developer version? _________________ Greybeard |
|
Back to top |
|
|
costel78 Guru
Joined: 20 Apr 2007 Posts: 402
|
Posted: Wed Sep 01, 2021 12:23 pm Post subject: |
|
|
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 |
|
|
mir3x Guru
Joined: 02 Jun 2012 Posts: 455
|
Posted: Wed Sep 01, 2021 2:24 pm Post subject: |
|
|
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 |
|
|
costel78 Guru
Joined: 20 Apr 2007 Posts: 402
|
Posted: Wed Sep 01, 2021 3:50 pm Post subject: |
|
|
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 |
|
|
|