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. ASRock X99 Extreme3 Is An Affordable Choice For Linux Users
  2. A Walkthrough Of The New 32 System Open-Source Linux Benchmarking Test Farm
  3. Habey MITX-6771: Mini-ITX Board With Quad-Core J1900 Bay Trail
  4. OCZ Vector 150 SSD On Linux
Latest Linux Articles
  1. 2014 Year-End NVIDIA Linux Benchmark Comparison
  2. 2014 Catalyst Linux Graphics Benchmarks Year-In-Review
  3. 17-Way Linux Graphics Card Comparison With Civilization Beyond Earth
  4. AMD Kaveri: Open-Source Radeon Gallium3D vs. Catalyst 14.12 Omega Driver
Latest Linux News
  1. GNU Binutils 2.25 Released With Port To Andes NDS32
  2. Merry Christmas & Happy Holidays 2014
  3. OpenMW 0.34 Released With Many Changes
  4. Ruby 2.2 Released With A Better Garbage Collector
  5. Xonotic 0.8 Is Slowly Creeping Closer To Being Released
  6. NVIDIA Sends Out 11 Nouveau Patches For Christmas
  7. Kodi 14.0 Released For The Holidays - Formerly Known As XBMC
  8. Devuan Is Still Moving Along As A Debian Fork Without Systemd
  9. UEFI Secure Boot Tools Updated For v2.4
  10. Phoronix Test Suite 5.4.1 Released
Latest Forum Discussions
  1. Why is it that Radeon cannot run good old (ancient) Doom 3 engine games?
  2. Aliens vs predator for Linux
  3. Debian init discussion in Phoenix Wright format
  4. FPS capped on Linux (AMD fglrx drivers)
  5. Speeding up systemd networking service
  6. Storm Engine 2 (Doom 3 BFG GPL fork) got entry on IndieDb
  7. Need some hand holding with upgrading xserver
  8. New build, first Linux PC, what could go wrong? ;)