LLVM Clang vs. GCC Compiler Comparison On Ubuntu 16.04 LTS
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.
Meanwhile, GCC continues to be much faster than Clang at the C-Ray multi-threaded ray-tracer test.
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.
Clang is getting closer to GCC's performance levels with the C++11 Stockfish chess engine benchmark.