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 3 of 4. 15 Comments.
Skylake Xeon GCC vs. Clang Compiler Optimization Tests

Under Himeno, GCC was faster than Clang at -O0 but Clang jumped out ahead at -O1, but then ended up losing out to GCC at the rest of the optimization levels tested.

Skylake Xeon GCC vs. Clang Compiler Optimization Tests
Skylake Xeon GCC vs. Clang Compiler Optimization Tests
Skylake Xeon GCC vs. Clang Compiler Optimization Tests

While LLVM Clang used to compile code dramatically faster than GCC, the leads aren't as significant as they once were when making use of Clang 3.8 and GCC 5.3.1.

Skylake Xeon GCC vs. Clang Compiler Optimization Tests

At -O2 and above is where GCC became unstoppable for C-Ray with Clang no longer offering comparable performance.

Skylake Xeon GCC vs. Clang Compiler Optimization Tests

The FLAC encoding test started out with GCC being much faster than Clang when not dealing with optimizations, but by the time the test ended, GCC and Clang were offering comparable speeds.


Related Articles