Announcement

Collapse
No announcement yet.

GCC 13 vs. Clang 17 Compiler Benchmarks, Early Clang 18 & GCC 14 Development Benchmarks

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

  • GCC 13 vs. Clang 17 Compiler Benchmarks, Early Clang 18 & GCC 14 Development Benchmarks

    Phoronix: GCC 13 vs. Clang 17 Compiler Benchmarks, Early Clang 18 & GCC 14 Development Benchmarks

    As it's been a while since last delivering any competitive GCC versus LLVM Clang compiler competitive analysis and with the year quickly drawing a close, here's a fresh look at the GCC vs. Clang C/C++ compiler performance of various resulting application binaries tested on x86_64. GCC 13 vs. Clang 17 were tested as what's readily available on Ubuntu 23.10 Linux plus a look ahead in using the latest GCC 14 and LLVM Clang 18 development snapshots as of this week.

    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
    Those are some wild differences that get pretty close by the geometric mean. And that is just on Zen4. Would be curious to see results on various AMD64 generations from Intel and AMD as well as on non-AMD64 arches like aarch64. Does gcc "win" on Zen3? How about pi5 or AppleSi. Don't you love when you have more questions after seeing results like these.

    Comment


    • #3
      Nice to see some numbers! I hope until the release of GCC 14 they fix some of the performance regression they have piled in the issue tracker. Thankless task, much appreciated!

      Comment


      • #4
        We need Clang vs GCC gaming benchmarks

        Comment


        • #5
          Originally posted by Kjell View Post
          We need Clang vs GCC gaming benchmarks
          I don't think it would really bring meaningful difference for proprietary games, especially if Wine / Proton are also not compiled from source. Though I think it would be interesting to do such comparison for open source games like Xonotic or Red Eclipse, and see the performance difference between the game compiled with GCC vs the game compiled with Clang.

          Comment


          • #6
            Originally posted by user1 View Post

            I don't think it would really bring meaningful difference for proprietary games, especially if Wine / Proton are also not compiled from source. Though I think it would be interesting to do such comparison for open source games like Xonotic or Red Eclipse, and see the performance difference between the game compiled with GCC vs the game compiled with Clang.
            Can Proton even be compiled with Clang? At least Wine cannot, if I am not mistaken. But I'd love to see that happening in my life time, on that whish list is also getting games compiled for the architecture the user runs with and regular re-compiles of popular titles with newer toolchains and optimization techniques, such as LTO + PGO and BOLT.

            Comment


            • #7
              Originally posted by ms178 View Post
              Can Proton even be compiled with Clang? At least Wine cannot, if I am not mistaken.
              Interesting. Idk about Proton, but I know that OpenMandriva is pretty much entirely compiled with Clang and it has Wine in its repository. I heard the only thing that's still built with GCC in OpenMandriva is glibc, but Idk about other packages. Maybe some are still built with GCC?

              Comment


              • #8
                Originally posted by user1 View Post

                Interesting. Idk about Proton, but I know that OpenMandriva is pretty much entirely compiled with Clang and it has Wine in its repository. I heard the only thing that's still built with GCC in OpenMandriva is glibc, but Idk about other packages. Maybe some are still built with GCC?
                What a coincidence, there is an experimental glibc-git repo out there maintained by a Linaro dev for making it compatible with Clang and I've been using it for some days now. It works as advertised. That would make wine one of the last holdouts for gcc-mingw.

                Comment


                • #9
                  It strikes me quite odd that so many significant differences are "equaled out" in the geometric means. IMHO this means that *both* compilers are not yet doing the maximum possible - i.e. there is still quite some room for improvement on both sides.

                  Comment


                  • #10
                    Originally posted by lowflyer View Post
                    It strikes me quite odd that so many significant differences are "equaled out" in the geometric means. IMHO this means that *both* compilers are not yet doing the maximum possible - i.e. there is still quite some room for improvement on both sides.
                    both the choice of the "geometric mean", aswell as the result is weird. the only use i could think of is multiplicating the ratios (like gcc has 1.2 times more throughput here, 0.9 times there).
                    yet the "mean" is in the 3000s instead of close to 1.

                    ​​​​​
                    ​​​​​​

                    Comment

                    Working...
                    X