LLVM Clang 16 vs. GCC 13 Compiler Performance On Intel Raptor Lake
Overall it was another competitive re-match between these latest open-source compilers on Linux. This round of testing was on the Intel Core i9 13900K "Raptor Lake" while similar testing will happen shortly on an AMD Zen 4 system.
Out of 58 tests carried out on each compiler, LLVM Clang 16 yielded the fastest performance overall with this "-O3 -march=native -flto" optimized testing. Clang 16 was in first place 81% of the time.
When taking the geometric mean of all the raw performance metrics, Clang 16 was faster than GCC 13 overall by about 6% on this Intel Raptor Lake system running Fedora Workstation 38. Stay tuned for similar benchmarks on AMD Zen 4.
Let us know in the forums what your experience has been if evaluating different compilers for your own code-base. Of course, binary size, build time, features, compiler diagnostics, and other factors also play an important role in deciding between compilers for production purposes. In any case it's great to see the continued friendly performance competition between Clang and GCC.
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.