GCC 4.7 Link-Time Optimization Performance
Written by Michael Larabel in Software on 21 August 2012. Page 3 of 3. 17 Comments

The Nero2D benchmark was about 10% faster with the GCC Link-Time Optimization "-flto" compiler flag.

The PostgreSQL performance barely budged with the LTO support.

Similar to the PostgreSQL server, the Apache server was minimally affected by the GCC LTO feature being enabled.

GCC's Link-Time Optimization support isn't able to improve the performance across the board, but for workloads where it did improve, the speed-ups were very noticeable. The downside to GCC LTO is that compiling the binaries takes significantly longer and goes through a greater amount of RAM, but if the LTO-provided performance improvement is significant, it really is worthwhile. It will be interesting to see how the LTO-optimized Linux kernel performs and other software as more extensive GCC LTO benchmarks are completed.

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

Trending Linux News