1. Computers
  2. Display Drivers
  3. Graphics Cards
  4. Memory
  5. Motherboards
  6. Processors
  7. Software
  8. Storage
  9. Operating Systems


Facebook RSS Twitter Twitter Google Plus


Phoronix Test Suite

OpenBenchmarking.org

GCC 4.9 Compiler Optimization Benchmarks For Faster Binaries

Michael Larabel

Published on 14 April 2014
Written by Michael Larabel
Page 1 of 5 - 22 Comments

For those curious about the impact of modern compiler tuning CFLAGS/CXXFLAGS when using the GCC 4.9 compiler with an Intel Core i7 "Haswell" processor, here are many benchmarks of many C/C++ code-bases when testing a variety of compiler optimization levels and other flags.

For mostly reference purposes, this week I did a number of GCC 4.9 RC1 benchmarks on an Intel Core i7 4770K system running Ubuntu 14.04 LTS. The GCC optimization settings tested were:

-O0
-O1
-O2
-Os
-Og
-O3
-Ofast
-O3 -march=native
-O3 -march=native -flto

For those unfamiliar with these compiler controls, see GCC's optimize options documentation. Covered are all the basic optimization levels, targeting code generation for the Core i7 CPU, and also trying out link-time optimizations. I also tried using -fno-fat-lto-objects and -fuse-linker-plugin but those options caused the builds to fail.

A variety of C and C++ open-source benchmarks were run via the Phoronix Test Suite for this compiler benchmarking. The primary focus is on testing the performance of the generated binaries under each configuration but there's also a few timed compilation tests included.

Latest Articles & Reviews
  1. Intel Broadwell: GCC 4.9 vs. LLVM Clang 3.5 Compiler Benchmarks
  2. Ubuntu vs. Fedora Linux On Lenovo's X1 Carbon With Core i7 Broadwell
  3. Ubuntu 15.04 Is The Easy Path To Better Performance On Intel Broadwell
  4. NVIDIA's Latest Maxwell Line-Up Against AMD With Catalyst On Linux
  5. Preliminary Tests Of Intel Sandy Bridge & Ivy Bridge vs. Broadwell
  6. AMD FX-8320E Performance On Linux
Latest Linux News
  1. I Switched (Back) Over To Fedora As My Main OS & It's Going Great!
  2. Windows 10, PS4, C4 & Systemd News Kicked Off 2015
  3. Calamares 1.0 Distribution-Independent Installer Framework Released
  4. Librem 15 Linux Laptop Set To Close At Around $400k USD
  5. Virtual GEM To Increase Mesa's Software Rasterizer Performance
  6. Open Lunchbox: Yet Another Open-Source Laptop Attempt
  7. Wayland/Weston 1.7 Release Candidate
  8. Bugzilla 5.0 Is Coming Soon With New Features
  9. Linux Benchmarking... Even Faster & A Very Interesting February
  10. Does VirtualBox VM Have Much A Future Left?
Most Viewed News This Week
  1. PlayStation 4 System Compiler Support Landing In LLVM
  2. Does VirtualBox VM Have Much A Future Left?
  3. Linux "GHOST" Vulnerability Hits Glibc Systems
  4. LibreOffice 4.4 Is Coming Soon With New Features
  5. LLVM Adds Options To Do Fuzz Testing
  6. LibreOffice 4.4 Released With Better OOXML Support, UI Improvements
  7. Inkscape 0.91 Goes Through C++ Code Conversion, New Cairo Rendering, OpenMP Filters
  8. Broadwell Linux Ultrabook Running MUCH Cooler Than Haswell