GCC vs. Clang Benchmark Comparison At Varying Optimization Levels
LAME MP3 encoding was a much tighter race than the FLAC encoding test for this GCC vs. Clang compiler benchmarking.
Clang started out faster than GCC for the Redis benchmark, but the performance quickly became heated as the optimizations were increased.
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.