GCC vs. Clang Compilers On The Intel Core i9 With Clear Linux

Written by Michael Larabel in Clear Linux on 17 July 2017 at 06:13 AM EDT. 11 Comments
CLEAR LINUX
For those curious about the GCC versus LLVM Clang compilers with Intel's new Core i9 7900X, earlier this month I had ran some compiler benchmarks on this high-end processor.

I simply forgot to post these GCC vs. Clang i9-7900X benchmark results earlier, but here they are for those interested. The tests were done with the performance-oriented Clear Linux distribution.
Clear Linux GCC Clang Core i9 7900X Testing

GCC 7.1.1 and LLVM Clang 4.0.1 were the releases used. Tests were done with the CFLAGS/CXXFLAGS of "-O3 -march=haswell" and "-O3 -march=native" on both compilers for also looking at the impact of the Skylake-X tuning compared to Haswell. Skylake-X notably adds AVX-512 support.
Clear Linux GCC Clang Core i9 7900X Testing

Interestingly on fast storage such as this NVMe SSD system, using Clang now leads to faster performance with SQLite over GCC.
Clear Linux GCC Clang Core i9 7900X Testing

GCC leads in FFTW. The Haswell vs. Skylake-X tuning doesn't lead to a large performance difference.
Clear Linux GCC Clang Core i9 7900X Testing

Clear Linux GCC Clang Core i9 7900X Testing

In most of our tests done internally, the Skylake-X tuning doesn't lead to any major benefits at this point and using AVX-512 for some benchmarks can lead to slower performance.
Clear Linux GCC Clang Core i9 7900X Testing

Clear Linux GCC Clang Core i9 7900X Testing

See many more Clang vs. GCC compiler benchmarks on the Intel Core i9 via this OpenBenchmarking.org result file.
Related News
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.

Popular News This Week