GCC 14 vs. LLVM Clang 18 Compiler Performance On Fedora 40
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.