LLVM Clang 16 vs. GCC 13 Compiler Performance On AMD 4th Gen EPYC "Genoa"
GCC ended the benchmarking match with a larger win for the OpenMP-threaded Kripke build.
Out of 131 tests ran in total, the LLVM Clang 16 compiler was faster than GCC 13 57% of the time.
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.