GCC 5 Is Compiling Faster, But Still Falls Short Of Clang

Written by Michael Larabel in LLVM on 9 November 2014 at 09:00 AM EST. 67 Comments
LLVM
On Saturday I posted some LLVM Clang vs. GCC benchmark results of the packages found in Fedora 21 on an Intel Xeon system, but how does the performance compare if building the latest snapshot of GCC 5? Fortunately, I have some interesting GCC 5.0 benchmarks to make this Sunday morning interesting for compiler fans.

From that same Fedora 21 system used for yesterday's Fedora 21 reference compiler tests, I built GCC 5.0 20141102 in its release mode and carried out the same C/C++ compiler benchmarks again using the open-source Phoronix Test Suite.

All of these results with Fedora 21's GCC 4.9.2 vs. LLVM Clang 3.4.2 vs. GCC 5.0 snapshot can be found via this OpenBenchmarking.org result file. The short story is:
GCC 5.0 Snapshot Compiler Benchmark Fedora 21
GCC 5.0 Snapshot Compiler Benchmark Fedora 21
Compile times seem to be much faster with GCC 5 than the GCC 4.9 stable series! However, LLVM's Clang still dominates when it comes to faster compile times.
GCC 5.0 Snapshot Compiler Benchmark Fedora 21

GCC 5 also offers speed boosts in a few of our common open-source C/C++ benchmarks over GCC 4.9.
GCC 5.0 Snapshot Compiler Benchmark Fedora 21

In some benchmarks, however, GCC 5.0 is showing lower performance than the GCC 4.9.2 stable release.

Again, check out all of our compiler benchmark results on OpenBenchmarking.org along with all of the system hardware/software details. Beyond the performance changes, GCC 5 has many other improvements.
Related News
About The Author
Michael Larabel

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, LinkedIn, or contacted via MichaelLarabel.com.

Popular News This Week