VOOZH about

URL: https://www.phoronix.com/review/gcc14-clang18-amd-zen4/2

⇱ GCC 14 vs. LLVM Clang 18 Compiler Performance On Fedora 40 - Phoronix


👁 Phoronix

GCC 14 vs. LLVM Clang 18 Compiler Performance On Fedora 40

Written by Michael Larabel in Software on 24 April 2024 at 11:02 AM EDT. Page 2 of 5. 35 Comments.

Right out of the gate we see the competitiveness of today's LLVM Clang compiler against GCC. Going back a decade or so GCC tended to consistently lead while these days is a very nice and competitive race on x86_64 (and AArch64).

There still are some workloads where GCC was yielding faster binaries than LLVM Clang on this AMD Zen 4 workstation.

But most commonly it was a neck-and-neck race and in some cases Clang outperforming GCC.

In some of the SMHasher benchmarks (note the compiler flag differences here are set by its build system), the Clang-built binaries had nice gains over GCC while for some crypto algorithms the GCC binaries were faster.