LLVM Clang 16 vs. GCC 13 Compiler Performance On AMD 4th Gen EPYC "Genoa"

Written by Michael Larabel in Software on 30 May 2023 at 11:42 AM EDT. Page 6 of 6. 12 Comments.
GPAW benchmark with settings of Input: Carbon Nanotube. Clang 16.0.3 was the fastest.
Kripke benchmark with settings of . GCC 13.1.1 was the fastest.

GCC ended the benchmarking match with a larger win for the OpenMP-threaded Kripke build.

Number Of First Place Finishes benchmark with settings of Wins, 131 Tests.

Out of 131 tests ran in total, the LLVM Clang 16 compiler was faster than GCC 13 57% of the time.

Geometric Mean Of All Test Results benchmark with settings of Result Composite, AMD EPYC Genoa Compilers. Clang 16.0.3 was the fastest.

If taking the geometric mean of all the benchmark results, Clang 16 yielded faster binaries on this AMD Zen 4 server (EPYC 9654 2P) by about 4%. It largely comes down though the code-bases/workloads of most relevance to your needs/interests for whether GCC or Clang is particularly better suited. There is also other compiler features and capabilities to consider as well beyond just the resulting performance. In any event those wanting to go through all 131 results can find them here.

If you enjoyed this article consider joining Phoronix Premium to view this site ad-free, multi-page articles on a single page, and other benefits. PayPal or Stripe tips are also graciously accepted. Thanks for your support.


Related Articles
About The Author
Michael Larabel

Michael Larabel is the principal author of Phoronix.com and founded the site in 2004 with a focus on enriching the Linux hardware experience. Michael has written more than 20,000 articles covering the state of Linux hardware support, Linux performance, graphics drivers, and other topics. Michael is also the lead developer of the Phoronix Test Suite, Phoromatic, and OpenBenchmarking.org automated benchmarking software. He can be followed via Twitter, LinkedIn, or contacted via MichaelLarabel.com.