Skip to main content
Redhat Developers  Logo
  • Products

    Featured

    • Red Hat Enterprise Linux
      Red Hat Enterprise Linux Icon
    • Red Hat OpenShift AI
      Red Hat OpenShift AI
    • Red Hat Enterprise Linux AI
      Linux icon inside of a brain
    • Image mode for Red Hat Enterprise Linux
      RHEL image mode
    • Red Hat OpenShift
      Openshift icon
    • Red Hat Ansible Automation Platform
      Ansible icon
    • Red Hat Developer Hub
      Developer Hub
    • View All Red Hat Products
    • Linux

      • Red Hat Enterprise Linux
      • Image mode for Red Hat Enterprise Linux
      • Red Hat Universal Base Images (UBI)
    • Java runtimes & frameworks

      • JBoss Enterprise Application Platform
      • Red Hat build of OpenJDK
    • Kubernetes

      • Red Hat OpenShift
      • Microsoft Azure Red Hat OpenShift
      • Red Hat OpenShift Virtualization
      • Red Hat OpenShift Lightspeed
    • Integration & App Connectivity

      • Red Hat Build of Apache Camel
      • Red Hat Service Interconnect
      • Red Hat Connectivity Link
    • AI/ML

      • Red Hat OpenShift AI
      • Red Hat Enterprise Linux AI
    • Automation

      • Red Hat Ansible Automation Platform
      • Red Hat Ansible Lightspeed
    • Developer tools

      • Red Hat Trusted Software Supply Chain
      • Podman Desktop
      • Red Hat OpenShift Dev Spaces
    • Developer Sandbox

      Developer Sandbox
      Try Red Hat products and technologies without setup or configuration fees for 30 days with this shared Openshift and Kubernetes cluster.
    • Try at no cost
  • Technologies

    Featured

    • AI/ML
      AI/ML Icon
    • Linux
      Linux Icon
    • Kubernetes
      Cloud icon
    • Automation
      Automation Icon showing arrows moving in a circle around a gear
    • View All Technologies
    • Programming Languages & Frameworks

      • Java
      • Python
      • JavaScript
    • System Design & Architecture

      • Red Hat architecture and design patterns
      • Microservices
      • Event-Driven Architecture
      • Databases
    • Developer Productivity

      • Developer productivity
      • Developer Tools
      • GitOps
    • Secure Development & Architectures

      • Security
      • Secure coding
    • Platform Engineering

      • DevOps
      • DevSecOps
      • Ansible automation for applications and services
    • Automated Data Processing

      • AI/ML
      • Data Science
      • Apache Kafka on Kubernetes
      • View All Technologies
    • Start exploring in the Developer Sandbox for free

      sandbox graphic
      Try Red Hat's products and technologies without setup or configuration.
    • Try at no cost
  • Learn

    Featured

    • Kubernetes & Cloud Native
      Openshift icon
    • Linux
      Rhel icon
    • Automation
      Ansible cloud icon
    • Java
      Java icon
    • AI/ML
      AI/ML Icon
    • View All Learning Resources

    E-Books

    • GitOps Cookbook
    • Podman in Action
    • Kubernetes Operators
    • The Path to GitOps
    • View All E-books

    Cheat Sheets

    • Linux Commands
    • Bash Commands
    • Git
    • systemd Commands
    • View All Cheat Sheets

    Documentation

    • API Catalog
    • Product Documentation
    • Legacy Documentation
    • Red Hat Learning

      Learning image
      Boost your technical skills to expert-level with the help of interactive lessons offered by various Red Hat Learning programs.
    • Explore Red Hat Learning
  • Developer Sandbox

    Developer Sandbox

    • Access Red Hat’s products and technologies without setup or configuration, and start developing quicker than ever before with our new, no-cost sandbox environments.
    • Explore Developer Sandbox

    Featured Developer Sandbox activities

    • Get started with your Developer Sandbox
    • OpenShift virtualization and application modernization using the Developer Sandbox
    • Explore all Developer Sandbox activities

    Ready to start developing apps?

    • Try at no cost
  • Blog
  • Events
  • Videos

Red Hat Enterprise Linux 7 toolchain a major performance boost for C/C++ developers

June 17, 2014
Matt Newsome
Related topics:
Developer Tools
Related products:
Developer Tools

Share:

    Now that Red Hat Enterprise Linux 7 is publicly available, we thought RHEL application developers would be interested in seeing how the new C/C++ toolchain compares to the equivalent in Red Hat Enterprise Linux 6 in terms of raw performance. The numbers are pretty surprising so stay tuned. But first, a little introduction to set the scene.

    Red Hat Enterprise Linux 6 GCC

    Red Hat Enterprise Linux 6 shipped in November 2010 with gcc-4.4.  As with all major new versions of Red Hat Enterprise Linux, we included a major release of GCC - in this case gcc-4.4, which was originally released in 2009. We use the exact same tools to build Red Hat Enterprise Linux as we include in the release, and we stand behind that toolchain with Red Hat's service level agreement - far in excess of what you'll have access to upstream. In short, we've got your back and will do our best to help with any bugs or issues you find as you develop your own applications. As users of Red Hat Developer Toolset will know, however, the emphasis in a Red Hat Enterprise Linux toolchain release is first and foremost on stability and reliability. We fix bugs and roll in new hardware enablement as we can without de-stabilizing the release, but enterprise quality is our primary goal.

    gcc-4.8 in Red Hat Enterprise Linux 7 and Developer Toolset 2.x

    The complementary product Red Hat Developer Toolset provides an alternative set of additional tools with an annual update cadence passing along the latest stable upstream GCC releases to our developers. You can read more about Red Hat Developer Toolset and watch a demo video here. Both Red Hat Developer Toolset 2.x and Red Hat Enterprise Linux 7 include gcc-4.8, which, until April 2014, was the latest major release of GCC upstream. So how does the newer gcc-4.8 release in those releases compare with the gcc-4.4 shipping today in Red Hat Enterprise Linux 6?

    gcc-4.4 vs gcc-4.8

    Red Hat toolchain engineer Vladimir Makarov dug into the relative performance of the two compilers using upstream releases and the SPEC CPU2000 performance benchmarks. The SPEC benchmarks are a well respected, standardized set of performance benchmarks which aim to test "real-life" situations. They are developed and maintained by the Standard Performance Evaluation Corporation, a non-profit organization. While we're focusing on toolchain performance in this post, you should also take a look at this one, in which other SPEC benchmarks are used to measure Red Hat Enterprise Linux's performance with highly resource-intensive and scalable workloads (executive summary: excellently!).

    Vladimir's comparison of gcc-4.4 and 4.8 used SPEC CPU2000 and aimed for peak performance, achieved by enabling not just optimization options but also new compiler features and processor support. Although the terminology is slightly inaccurate, for ease of reference we'll call this "peak performance".

    Three versions of GCC were tested in this way: gcc-4.2.4, gcc-4.4.4, and gcc-4.8.2, and all were run on the exact same Intel Haswell hardware(3.4 GHz i5-4670) under the same load. Why are those particular versions of GCC significant? Well, for a variety of reasons, but when it comes to comparing Red Hat Enterprise Linux 6 and Red Hat Enterprise Linux 7 GCC performance, gcc-4.4.4 is the GCC version released in Red Hat Enterprise Linux 6, and gcc-4.8.2 is the GCC version in the Red Hat Enterprise Linux 7.

    The results

    So, after crunching the numbers, what do we find? Well, Red Hat Enterprise Linux 7's GCC outperforms Red Hat Enterprise Linux 6's GCC on SPEC CPU2000 by approximately 10%, with specific results varying between 32- and 64-bit code, and between integer and floating point benchmarks. To give these numbers some context, we'd typically expect to see around 1.5% improvement in GCC's performance with each new annual release of GCC upstream. So, for the four years between gcc-4.4 and gcc-4.8, we'd therefore expect something in the region of 6% improvement. It's a testament to the hard work of the upstream community, of which Red Hat is a sizeable percentage, that almost double that number has been achieved.

    Closing thoughts

    So, in conclusion, both Developer Toolset users and Red Hat Enterprise Linux 7 application developers should expect to see a very healthy performance improvement in comparison with Red Hat Enterprise Linux 6's toolchain. And that's in addition to the new standards support and extensive new features.

    No benchmark is perfect, because the most important benchmark for your particular application is your particular application. Nothing else quite captures the coding idioms, performance profile, and hardware characteristics as well as your own applications running on your production servers. So the best way to see what Red Hat Enterprise Linux 7's tools will do for your application is to try it. Just be sure to start with the options we used.

    Let us know your conclusions - we'd love to hear from you.

    SPEC® is a registered trademark of the Standard Performance
    Evaluation Corporation (SPEC).
    Last updated: February 26, 2024

    Recent Posts

    • How to build a Model-as-a-Service platform

    • How Quarkus works with OpenTelemetry on OpenShift

    • Our top 10 articles of 2025 (so far)

    • The benefits of auto-merging GitHub and GitLab repositories

    • Supercharging AI isolation: microVMs with RamaLama & libkrun

    Red Hat Developers logo LinkedIn YouTube Twitter Facebook

    Products

    • Red Hat Enterprise Linux
    • Red Hat OpenShift
    • Red Hat Ansible Automation Platform

    Build

    • Developer Sandbox
    • Developer Tools
    • Interactive Tutorials
    • API Catalog

    Quicklinks

    • Learning Resources
    • E-books
    • Cheat Sheets
    • Blog
    • Events
    • Newsletter

    Communicate

    • About us
    • Contact sales
    • Find a partner
    • Report a website issue
    • Site Status Dashboard
    • Report a security problem

    RED HAT DEVELOPER

    Build here. Go anywhere.

    We serve the builders. The problem solvers who create careers with code.

    Join us if you’re a developer, software engineer, web designer, front-end designer, UX designer, computer scientist, architect, tester, product manager, project manager or team lead.

    Sign me up

    Red Hat legal and privacy links

    • About Red Hat
    • Jobs
    • Events
    • Locations
    • Contact Red Hat
    • Red Hat Blog
    • Inclusion at Red Hat
    • Cool Stuff Store
    • Red Hat Summit
    © 2025 Red Hat

    Red Hat legal and privacy links

    • Privacy statement
    • Terms of use
    • All policies and guidelines
    • Digital accessibility

    Report a website issue