GCC vs. Clang Benchmark Comparison At Varying Optimization Levels

Written by Michael Larabel in Software on 3 March 2016 at 01:29 PM EST. Page 4 of 4. 15 Comments.
Skylake Xeon GCC vs. Clang Compiler Optimization Tests

LAME MP3 encoding was a much tighter race than the FLAC encoding test for this GCC vs. Clang compiler benchmarking.

Skylake Xeon GCC vs. Clang Compiler Optimization Tests

Clang started out faster than GCC for the Redis benchmark, but the performance quickly became heated as the optimizations were increased.

Skylake Xeon GCC vs. Clang Compiler Optimization Tests

The -march=native runs appeared to significantly hurt Clang's performance with the HINT benchmark, but aside from that it was performing quite well against the GNU Compiler Collection.

To see more of these GCC vs. Clang C/C++ compiler benchmarks at varying optimization levels, see this OpenBenchmarking.org result file.

If you would like to support all of the work we do daily at Phoronix for advancing open-source benchmarking and Linux news coverage, please consider joining Phoronix Premium to make more, quality articles possible.

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.