Announcement

Collapse
No announcement yet.

Firefox Is Now Built With Clang+LTO Everywhere, Sizable Performance Wins For Linux

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Firefox Is Now Built With Clang+LTO Everywhere, Sizable Performance Wins For Linux

    Phoronix: Firefox Is Now Built With Clang+LTO Everywhere, Sizable Performance Wins For Linux

    Firefox nightly builds are now built with the LLVM Clang compiler on all major platforms and the Linux build in particular is also now utilizing PGO optimizations too. Faster Firefox is coming thanks to this compiler work...

    Phoronix, Linux Hardware Reviews, Linux hardware benchmarks, Linux server benchmarks, Linux benchmarking, Desktop Linux, Linux performance, Open Source graphics, Linux How To, Ubuntu benchmarks, Ubuntu hardware, Phoronix Test Suite

  • #2
    Is Firefox for Windows run on wine on Linux still faster than native Linux version?

    Comment


    • #3
      You can check with about:buildconfig

      Comment


      • #4
        I still don't blame them for focusing on Windows first, when the great majority of their users are on Windows. But it's nice to see this happen.

        Originally posted by szymon_g View Post
        Is Firefox for Windows run on wine on Linux still faster than native Linux version?
        Oh yikes, that was true at one point?

        Comment


        • #5
          It'd be better if we had performance metrics comparisons to GCC 8.2 / GCC 9(pre) builds instead of GCC 6.

          Comment


          • #6
            Clang enables cross-language inlining with Rust which is another huge performance step.

            Comment


            • #7
              Even Chromium is more near to hardware video decoding than Firefox.

              Comment


              • #8
                My specimen was compiled with gcc-8.2.0 and non-LTO ( Gentoo)

                This is good moment to try LTO on newest version.

                BTW, is some good shortcut for checkiung the validity of LTO compiles ?

                It took me quite some time to loca<te LTO breakage in ffmpeg that mnifestedd as SEGV during play of outube content iwth M4A for audio.

                After ffmpeg recompile with non-LTO flags, such content plays normally...



                Comment


                • #9
                  OpenMandriva build Firefox with Clang for while. I tested some time ago on OpenMandriva LX3, Firefox from the system repo distribution built with Clang and the prebuild binary version from mozilla.com with GCC. As it turned out, the version from Clang worked much better and noticeably faster. But these were only feelings of use. I did not make benchmarks.

                  Comment


                  • #10
                    Originally posted by Brane215 View Post
                    BTW, is some good shortcut for checkiung the validity of LTO compiles ?

                    It took me quite some time to loca<te LTO breakage in ffmpeg that mnifestedd as SEGV during play of outube content iwth M4A for audio.

                    After ffmpeg recompile with non-LTO flags, such content plays normally...
                    Short answer: No

                    There are different reasons for breakage, broken code that just happens to work aslong you compile it separately and bugs in the compilers/linkers LTO implemenation (different optimization flags might be another reason, but I would count not warning about those effects a compiler bug).
                    broken code might give you warnings (enable -Wall), but compiler bugs are just that.

                    You best bet would be using an elaborate test-suite, wherever possible

                    Comment

                    Working...
                    X