LLVM Clang vs. GCC Compiler Benchmarks On FreeBSD 11.0
For those interested in C/C++ compiler performance, for some fun numbers to dive into this weekend are LLVM Clang vs. GCC benchmarks atop FreeBSD 11.0 RC1 AMD64 on an Intel Xeon Haswell system.
FreeBSD 11.0 continues to ship the LLVM Clang compiler by default (v3.8) while GCC is available via ports and pkg. For this benchmarking, I compared the Clang 3.8 performance to GCC 6.1, GCC 5.4, GCC 4.8.5m and GCC 4.6.4 as obtained via FreeBSD pkg. All of the tests were done on the same system and no other changes were made to the FreeBSD installation between switching out the used compiler.
All of the compiler flags were maintained the same throughout the entire benchmarking process. All of the tests were conducted in a fully-automated and reproducible manner using the open-source Phoronix Test Suite cross-platform benchmarking software.