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.

<< Previous Page
1
Latest Linux Hardware Reviews
  1. Even With Re-Clocking, Nouveau Remains Behind NVIDIA's Proprietary Linux Driver
  2. The Power Consumption & Efficiency Of Open-Source GPU Drivers
  3. AMD R600g/RadeonSI Performance On Linux 3.16 With Mesa 10.3-devel
  4. Intel Pentium G3258 On Linux
Latest Linux Articles
  1. Nouveau vs. Radeon vs. Intel Tests On Linux 3.16, Mesa 10.3-devel
  2. KVM Benchmarks On Ubuntu 14.10
  3. X.Org Server 1.16 Officially Released With Terrific Features
  4. Ubuntu With Linux 3.16 Smashes OS X 10.9.4 On The MacBook Air
Latest Linux News
  1. GCC As A Just-In Time Compiler Is An Interesting Project
  2. Age Of Wonders III Is Still Being Ported To Linux
  3. Git 2.1 To Further Mainline Windows Support Patches
  4. Debian 8.0 Jessie Is Settling For Linux 3.16
  5. Meson: A Next-Gen Build System Showing Promise
  6. Linux 3.16-rc7 Calms Things Down For The Linux 3.16 Kernel
  7. Open-Source AMD Users Report Hawaii GPU Acceleration Is Working
  8. Linus Torvalds On GCC 4.9: Pure & Utter Crap
  9. Cauldron 2014: GCC & LLVM Will Look To Collaborate More
  10. GCC Receives ACM Programming Languages Software Award
Latest Forum Discussions
  1. Porting Mesa to the Playstation 2
  2. Updated and Optimized Ubuntu Free Graphics Drivers
  3. ASRock AM1H-ITX: One Of The Best AM1 Mini-ITX Motherboards
  4. Debian + radeonsi
  5. Open-source drivers on ATI R7 260X
  6. Table test
  7. How To Setup Radeon DPM On Ubuntu Linux
  8. New build, first Linux PC, what could go wrong? ;)