Trying Link-Time Optimizations On GCC 4.10

Written by Michael Larabel in GNU on 23 June 2014 at 02:12 AM EDT. 30 Comments
GNU
This weekend I ran some quick and dirty link-time optimization (LTO) benchmarks from a GCC 4.10 compiler snapshot from earlier this month. Here's the results.

For those unfamiliar with GCC's Link-Time Optimization abilities, read this earlier article and benchmarks from two years ago when testing GCC 4.7 after its LTO abilities were into shape. LTO has the ability to yield faster binaries of large programs by applying optimizations at link-time across multiple source files, but at the cost of longer build times and using greater system resources. With GNU developers continuing to optimize the compiler's LTO performance, out of curiosity I ran some quick benchmarks this weekend of a 4.10 snapshot.
GCC 4.10 Link-Time Optimizations

With just being a quick, one-page article, the results aren't too particularly exciting and mostly a data dump of some benchmark numbers, but as GCC 4.10 continues to be developed over the months ahead and gains new abilities ahead of its release that will most likely come in H1'2015, further benchmarks will materialize on Phoronix.
GCC 4.10 Link-Time Optimizations

While LTO holds lots of hope, don't get too excited as it won't yield performance improvements for all applications.
GCC 4.10 Link-Time Optimizations

For many applications, the performance improvements of LTO are rather small.
GCC 4.10 Link-Time Optimizations
GCC 4.10 Link-Time Optimizations
GCC 4.10 Link-Time Optimizations

The build times are certainly longer...
GCC 4.10 Link-Time Optimizations

Find more of these GCC 4.10 LTO tests via this result file but they are rather basic and not particularly exciting -- the more interesting GCC 4.10 compiler tests will come later with a proper, multi-page write-up.
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