GCC 6.1 vs. LLVM Clang 3.9 Compiler Performance
Written by Michael Larabel in Software on 10 May 2016. Page 4 of 4. 10 Comments

The results were close between the two compilers for FLAC audio encoding while GCC 6.1 pulled out ahead for the MP3 encoding test via LAME.

The results were very close with the PostgreSQL database server benchmark.

Redis built under GCC and LLVM/Clang was also performing similarly.

Overall, with the latest versions of GCC and LLVM Clang, the compiler race is quite heated. Clang tends to perform very well against GCC for many of the C/C++ workloads out there, but in some areas the GNU Compiler Collection remains ahead while in others Clang is able to yield a striking win. Clang though is still leading over GCC when it comes to faster compile times. It really depends upon your particular workloads and what features/functionality are important to you outside of runtime performance in deciding between using GCC and Clang. Stay tuned for more tests shortly of these fresh open-source compilers.

If you enjoyed this article consider joining Phoronix Premium to view this site ad-free, multi-page articles on a single page, and other benefits. PayPal tips are also graciously accepted. Thanks for your support.


Related Articles
About The Author
Author picture

Michael Larabel is the principal author of Phoronix.com and founded the site in 2004 with a focus on enriching the Linux hardware experience. Michael has written more than 20,000 articles covering the state of Linux hardware support, Linux performance, graphics drivers, and other topics. Michael is also the lead developer of the Phoronix Test Suite, Phoromatic, and OpenBenchmarking.org automated benchmarking software. He can be followed via Twitter or contacted via MichaelLarabel.com.

Trending Linux News