GCC 7.0 vs. LLVM Clang 4.0 Performance With Both Compiler Updates Coming Soon
Clang 4.0 is faster than Clang 3.9.1 for the LAME MP3 encoding performance, but still behind GCC.
Clang 4.0 also appeared a bit quicker than Clang 3.9.1 for the FFmpeg encoding test.
GCC 6/7 was quicker than Clang 3.9/4.0 for Caffe's AlexNet test running on the CPU.
The Googlenet performance though was about the same speed.
With Redis the compiler results were close but GCC 7.0 appeared to have the advantage.
For what it's worth, here are some statistics on the first and last place finishes for all the compiler benchmarks in this article (via Phoronix Test Suite 7.0's new winners-and-losers sub-command):
WINS: Clang 3.9.1: 12 [25.0%] Clang 4.0 SVN: 9 [18.8%] GCC 4.9.4: 7 [14.6%] GCC 7.0.0 20170108: 7 [14.6%] GCC 5.4.0: 7 [14.6%] GCC 6.3.0: 6 [12.5%]
LOSSES: Clang 3.9.1: 13 [27.1%] GCC 5.4.0: 12 [25.0%] GCC 4.9.4: 7 [14.6%] GCC 7.0.0 20170108: 7 [14.6%] Clang 4.0 SVN: 7 [14.6%] GCC 6.3.0: 2 [4.2%]
If you enjoyed these results, you can find more of this compiler benchmark data via this OpenBenchmarking.org result file. Consider joining Phoronix Premium if you would like to see more of these tests occur in the future; thanks for your support.
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.