LLVM Clang vs. GCC Compiler Benchmarks On FreeBSD 11.0

Written by Michael Larabel in Software on 27 August 2016 at 11:30 AM EDT. Page 1 of 4. 16 Comments.

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.

Related Articles