News: 0001633389

  ARM Give a man a fire and he's warm for a day, but set fire to him and he's warm for the rest of his life (Terry Pratchett, Jingo)

GCC 16 Produces Faster Binaries Than GCC 15, Competitive Race With LLVM Clang 22

([Software] 2 Hours Ago 3 Comments)


[1]GCC 16.1 released at the end of April as the latest major, annual feature release to the GNU Compiler Collection. Early benchmarks showed some [2]nice leads for GCC 16 over GCC 15 . Continued testing of the new GCC 16 compiler has continued to show overall better performance of the resulting binaries than using GCC 15 on the same hardware and same compiler flags. That led many to wonder about the GCC 16 performance up against the latest LLVM/Clang open-source compiler, which is the focus of today's benchmarking showdown.

[3]

Today's compiler testing is done on a completely different system and again seeing better performance with GCC 16 than GCC 15. Plus a look at how GCC 16 stacks up against the current LLVM Clang 22 stable series. All of this compiler testing was done on [4]the new System76 Thelio Major workstation powered by the AMD Ryzen Threadripper 9000 series . This System76 Thelio Major review unit is equipped with the AMD Ryzen Threadripper 9980X 64-core / 128-thread Zen 5 processor with 128GB of RAM.

[5]

Fedora Workstation 44 was loaded on the Thelio Major in being the first major Linux distribution already using GCC 16 by default. GCC 15 is also in the repository as is LLVM Clang 22, to make for a nice, straight-forward comparison with easy reproducibility and transparency. The same CFLAGS/CXXFLAGS were kept the same during all of the compiler testing with "-O3 -march=native".

Let's continue with this performance showdown of Linux x86_64 binaries generated by GCC 15.2, GCC 16.1, and LLVM Clang 21.1.4. Similar Linux AArch64 compiler benchmarks with GCC and Clang will be coming in a follow-up article on Phoronix for those interested in ARM64 compiler performance.



[1] https://www.phoronix.com/news/GCC-16.1-Released

[2] https://www.phoronix.com/review/gcc-16-benchmarks

[3] https://www.phoronix.com/image-viewer.php?id=gcc-16-vs-clang-22&image=thelio_gcc16_1_lrg

[4] https://www.phoronix.com/review/system76-thelio-major-9980x

[5] https://www.phoronix.com/image-viewer.php?id=gcc-16-vs-clang-22&image=thelio_gcc16_2_lrg



Copying machine, n.:
A device that shreds paper, flashes mysteriously coded messages,
and makes duplicates for everyone in the office who isn't
interested in reading them.