LLVM Clang vs. GCC Compiler Comparison On Ubuntu 16.04 LTS

Written by Michael Larabel in Software on 26 February 2016 at 12:00 PM EST. Page 3 of 4. 17 Comments.
Ubuntu 16.04 LTS Compiler Benchmarks
Ubuntu 16.04 LTS Compiler Benchmarks

Clang continues to lead over GCC when it comes to faster compile times. GCC 6.0.0 appears to take a huge leap backwards in compile times, at least for Apache and PHP. Too bad LLVM Clang still can't compile the mainline Linux kernel.

Ubuntu 16.04 LTS Compiler Benchmarks

Meanwhile, GCC continues to be much faster than Clang at the C-Ray multi-threaded ray-tracer test.

Ubuntu 16.04 LTS Compiler Benchmarks

Clang is only slightly trailing GCC with the Smallpt path tracing benchmark. Previous Clang used to be a long shot against GCC due to its missing OpenMP support, but fortunately the Clang OpenMP support is working quite well in v3.7~3.8.

Ubuntu 16.04 LTS Compiler Benchmarks

Clang is getting closer to GCC's performance levels with the C++11 Stockfish chess engine benchmark.


Related Articles