GCC 13 vs. Clang 17 Compiler Benchmarks, Early Clang 18 & GCC 14 Development Benchmarks

Written by Michael Larabel in Software on 28 December 2023 at 07:27 AM EST. Page 8 of 8. 13 Comments.
Geometric Mean Of All Test Results benchmark with settings of Result Composite, GCC Clang Compiler Benchmarks Zen 4 Threadripper. Clang 18 23 Dec was the fastest.

For those curious about the geometric mean for the benchmarks that successfully ran on all four tested compilers/versions, it ends up being an effective tie. The LLVM Clang x86_64 performance has evolved very well over the years that the performance of the resulting binaries can typically match or exceed GCC. In some benchmarks as shown GCC can still outpace Clang. Overall though Clang remains a very capable alternative to GCC particularly on x86_64 and AArch64 architectures.

Though besides the performance of the resulting binaries, it's obviously important as well in deciding between the compiler to use which one offers better diagnostics for your purposes, the current language support, the compiler license, etc. In any event for those that have been requesting a fresh GCC vs. Clang battle, hopefully you found these numbers insightful for an end-of-year article. It will be interesting to see how both GCC and LLVM/Clang evolve in 2024.

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.