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 Benchmarking Platform
Phoromatic Test Orchestration

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 Linux News
  1. Mandriva Linux Was Allegedly Brought Down By Employee Lawsuits
  2. GNOME 3.17.2 Is Released As The Latest Look Towards GNOME 3.18
  3. Phoronix Turns 11 Years Old Next Week: How Should We Celebrate?
  4. Ubuntu Community Council Reaffirms Its Decision Against Kubuntu's Leader
  5. Future Plans For Changing Fedora's Installer
  6. Confusion Mounts Over Wayland's Actual License
  7. GNOME's Mutter Now Supports Drag-n-Drop To/From Wayland & X11
  8. Wine 1.7.44 Works On More 64-bit ARM Support
  9. Phoronix Test Suite 5.8 Milestone 5 Brings Near Final "Belev" Experience
  10. For AMD Users, Linux 4.2 Will Bring The New AMDGPU Driver & VCE1 For Radeon
Latest Articles & Reviews
  1. Btrfs RAID 0/1/5/6/10 Five-Disk Benchmarks On Linux 4.1
  2. Opening The Gates To Our Daily Open-Source Linux Benchmark Results
  3. The Latest Features For Linux Performance Management + Benchmark Monitoring
  4. Noctua NH-U12DX i4 + NF-F12
Most Viewed News This Week
  1. NVIDIA's Proprietary Driver Is Moving Closer With Kernel Mode-Setting
  2. Zapcc Claims To Be A "Much Faster C++ Compiler"
  3. OpenWRT 15.05 Preparing Improved Security & Better Networking
  4. Features Added To Mesa 10.6 For Open-Source GPU Drivers
  5. Ubuntu's LXD vs. KVM For The Linux Cloud
  6. Friction Building Around An Ubuntu Community Council Decision
  7. The Latest Linux Kernel Git Code Fixes The EXT4 RAID0 Corruption Problem
  8. Fedora 22 Is Being Released Next Tuesday