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. NVIDIA GeForce GTX 970 Offers Great Linux Performance
  2. CompuLab Intense-PC2: An Excellent, Fanless, Mini PC Powered By Intel's i7 Haswell
  3. From The Atom 330 To Haswell ULT: Intel Linux Performance Benchmarks
  4. AMD Radeon R9 285 Tonga Performance On Linux
Latest Linux Articles
  1. AMD Moves Forward With Unified Linux Driver Strategy, New Kernel Driver
  2. MSI: Update Your BIOS From The Linux Desktop
  3. NVIDIA vs. AMD 2D Linux Drivers: Catalyst Is Getting Quite Good At 2D
  4. 15-Way GPU Comparison With Mesa 10.3 + Linux 3.17
Latest Linux News
  1. Phoenix Is Trying To Be An Open Version Of Apple's Swift
  2. Linux 3.19 To Have Skylake Graphics, PPGTT Enablement
  3. Ubuntu 16.04 Might Be The Distribution's Last 32-Bit Release
  4. Imagination Releases Full ISA Documentation For PowerVR Rogue GPUs
  5. Features GNOME Developers Want In The Linux Kernel
  6. GTK+ Gains Experimental Overlay Scrollbars
  7. Phoronix Test Suite 5.4 M3 Is Another Hearty Update
  8. GParted 0.20 Improves Btrfs Support
  9. EXT4 In Linux 3.18 Has Clean-ups, Bug Fixes
  10. Emacs 24.4 Has Built-In Web Browser, Improved Multi-Monitor Support
Latest Forum Discussions
  1. Proof that strlcpy is un-needed
  2. xbox one tv tuner
  3. Users/Developers Threatening Fork Of Debian GNU/Linux
  4. HOPE: The Ease Of Python With The Speed Of C++
  5. Bye bye BSD, Hello Linux: A Sys Admin's Story
  6. Updated and Optimized Ubuntu Free Graphics Drivers
  7. NVIDIA Presents Its Driver Plans To Support Mir/Wayland & KMS On Linux
  8. AMD Is Restructuring Again, Losing 7% Of Employees