GCC Compiler Optimization Benchmarks With A 16-Thread Haswell-EP

In addition to running some GCC vs. LLVM Clang on Fedora 21 compiler benchmarks and some early GCC 5 compiler benchmarking with the eight-core Intel Xeon CPU plus Hyper Threading, I also ran some reference compiler optimization benchmarks with this hardware/software stack. The tests for this one-page article are similar to the many other Phoronix compiler optimization articles and are namely being put out there for those curious about the modern impact of different compiler flags for a high-end Intel Xeon system with Fedora Linux.
Using GCC 4.9.2, benchmarks were done with the CFLAGS/CXXFLAGS being set to -O0 for no optimizations, -O2 for the middle of the road in terms of optimizations, -O3 for great optimizations, -O3 -march=native for also allowing the generated code to target the Haswell Xeon CPU, -O3 -march=native -flto for also including link-time optimizations, and lastly was running -Ofast -march=native for applying all of the fast optimizations.
All of these compiler benchmarks were carried out via the Phoronix Test Suite benchmarking software.
4 Comments