GCC 8/9 vs. LLVM Clang 6/7 Compiler Benchmarks On AMD EPYC

Written by Michael Larabel in Software on 27 July 2018 at 04:01 AM EDT. Page 4 of 4. 10 Comments.

In the case of FLAC audio encoding, Clang was faster at -O3 -march=native while losing to GCC at the lower optimization levels.

Of 49 benchmarks ran in total across the four tested compilers at the three optimization levels, coming in first at 34% of the time was GCC 8.2 RC1 with the obvious "-O3 -march=native" level while coming in second with wins 20% of the time was LLVM Clang 6.0 with the similar "-O3 -march=native" level while in third with wins 16% of the time was GCC 9.0 SVN at the same optimization level. LLVM Clang performance has come a long way over the past few years and is generally on-par with GCC these days, but as these benchmark results show, there still are many cases where the GNU Compiler Collection can offer a measurable advantage over Clang for the performance of generated binaries from C/C++.

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.