Fedora 21 GCC Compiler Optimizations

Compiler optimization benchmarks by Michael Larabel for a future article on Phoronix.com.

HTML result view exported from: https://openbenchmarking.org/result/1411071-LI-FEDORA21G97&sor&grs.

Fedora 21 GCC Compiler OptimizationsProcessorMotherboardChipsetMemoryDiskGraphicsAudioMonitorNetworkOSKernelDesktopDisplay ServerDisplay DriverOpenGLCompilerFile-SystemScreen Resolution-O0-O2-O3-O3 -march=native-O3 -march=native -flto-Ofast -march=nativeIntel Xeon E5-1680 v3 @ 3.80GHz (16 Cores)MSI X99S SLI PLUS (MS-7885) v1.0Intel Xeon E5 v3/Core16384MB80GB INTEL SSDSCKGW08eVGA NVIDIA GeForce GT 740 1024MBIntel C610/X99VE228Intel ConnectionFedora 213.18.0-0.rc3.git2.2.fc22.1.x86_64 (x86_64)GNOME Shell 3.14.1.5X Server 1.16.1nouveau 1.0.103.3 Mesa 10.3.2 Gallium 0.4GCC 4.9.2 20141101 + LLVM 3.4.2ext41920x1080OpenBenchmarking.orgCompiler Details- --build=x86_64-redhat-linux --disable-libgcj --disable-libunwind-exceptions --enable-__cxa_atexit --enable-bootstrap --enable-checking=release --enable-gnu-indirect-function --enable-gnu-unique-object --enable-initfini-array --enable-languages=c,c++,objc,obj-c++,fortran,ada,go,lto --enable-multilib --enable-plugin --enable-shared --enable-threads=posix --mandir=/usr/share/man --with-arch_32=i686 --with-linker-hash-style=gnu --with-tune=generic Processor Details- Scaling Governor: intel_pstate powersaveSystem Details- SELinux: Enabled.

Fedora 21 GCC Compiler Optimizationsencode-flac: WAV To FLACprimesieve: 1e12 Prime Number Generationgraphics-magick: Local Adaptive Thresholdinghimeno: Poisson Pressure Solverc-ray: Total Timeencode-mp3: WAV To MP3graphics-magick: Sharpengraphics-magick: HWB Color Spacegraphics-magick: Resizingbuild-apache: Time To Compilescimark2: Monte Carloscimark2: Fast Fourier Transformgraphics-magick: Blurgcrypt: CAMELLIA256-ECB Cipher-O0-O2-O3-O3 -march=native-O3 -march=native -flto-Ofast -march=native20.89214.1419461.4236.2734.0760989817.63599.65443.486673175.5845.86921996.7223.7812.9113014417730.34600.06472.2810018974.7745.90921997.6013.6912.3212814117232.72591.22444.8810419723.9343.20921909.109.3311.3814116818226.82589.31472.98138179243.162222.879.32673.31467.8119973.8943.19922119.068.4610.4414119718226.39602.01458.28137OpenBenchmarking.org

FLAC Audio Encoding

WAV To FLAC

OpenBenchmarking.orgSeconds, Fewer Is BetterFLAC Audio Encoding 1.3.0WAV To FLAC-Ofast -march=native-O3 -march=native-O3-O2-O0510152025SE +/- 0.03, N = 5SE +/- 0.03, N = 5SE +/- 0.02, N = 5SE +/- 0.03, N = 5SE +/- 0.03, N = 53.893.934.775.5820.89-Ofast -march=native-O3 -march=native-O3-O2-O01. (CXX) g++ options: -fvisibility=hidden -lm

Primesieve

1e12 Prime Number Generation

OpenBenchmarking.orgSeconds, Fewer Is BetterPrimesieve 5.41e12 Prime Number Generation-O3 -march=native -flto-Ofast -march=native-O3 -march=native-O2-O3-O050100150200250SE +/- 0.03, N = 3SE +/- 0.02, N = 3SE +/- 0.02, N = 3SE +/- 0.14, N = 3SE +/- 0.22, N = 3SE +/- 0.08, N = 343.1643.1943.2045.8645.90214.14-O3 -march=native -flto-Ofast -march=native-O3 -march=native-O2-O3-O01. (CXX) g++ options: -fopenmp

GraphicsMagick

Operation: Local Adaptive Thresholding

OpenBenchmarking.orgIterations Per Minute, More Is BetterGraphicsMagick 1.3.19Operation: Local Adaptive Thresholding-Ofast -march=native-O3 -march=native-O3-O2-O020406080100SE +/- 0.00, N = 3SE +/- 0.33, N = 3SE +/- 0.00, N = 3SE +/- 0.00, N = 3SE +/- 0.00, N = 39292929219-Ofast -march=native-O3 -march=native-O3-O2-O01. (CC) gcc options: -std=gnu99 -fopenmp -pthread -ltiff -lfreetype -ljpeg -lXext -lX11 -llzma -lbz2 -lxml2 -lz -lm -lgomp -lpthread

Himeno Benchmark

Poisson Pressure Solver

OpenBenchmarking.orgMFLOPS, More Is BetterHimeno Benchmark 3.0Poisson Pressure Solver-O3 -march=native -flto-Ofast -march=native-O3-O2-O3 -march=native-O05001000150020002500SE +/- 1.97, N = 3SE +/- 0.90, N = 3SE +/- 1.73, N = 3SE +/- 3.75, N = 3SE +/- 2.07, N = 3SE +/- 6.01, N = 32222.872119.061997.601996.721909.10461.42-march=native -flto-Ofast -march=native-O2-march=native-O01. (CC) gcc options: -O3

C-Ray

Total Time

OpenBenchmarking.orgSeconds, Fewer Is BetterC-Ray 1.1Total Time-Ofast -march=native-O3 -march=native -flto-O3 -march=native-O3-O2-O0816243240SE +/- 0.01, N = 3SE +/- 0.01, N = 3SE +/- 0.02, N = 3SE +/- 0.28, N = 6SE +/- 0.23, N = 3SE +/- 0.27, N = 38.469.329.3313.6923.7836.27-Ofast -march=native-march=native -flto-march=native-O2-O01. (CC) gcc options: -lm -lpthread -O3

LAME MP3 Encoding

WAV To MP3

OpenBenchmarking.orgSeconds, Fewer Is BetterLAME MP3 Encoding 3.99.3WAV To MP3-Ofast -march=native-O3 -march=native-O3-O2-O0816243240SE +/- 0.03, N = 5SE +/- 0.01, N = 5SE +/- 0.03, N = 5SE +/- 0.13, N = 5SE +/- 0.04, N = 510.4411.3812.3212.9134.07-Ofast -march=native-O3 -march=native-O3-O2-O01. (CC) gcc options: -pipe -lncurses -lm

GraphicsMagick

Operation: Sharpen

OpenBenchmarking.orgIterations Per Minute, More Is BetterGraphicsMagick 1.3.19Operation: Sharpen-Ofast -march=native-O3 -march=native-O2-O3-O0306090120150SE +/- 0.00, N = 3SE +/- 0.33, N = 3SE +/- 0.67, N = 3SE +/- 0.88, N = 3SE +/- 0.33, N = 314114113012860-Ofast -march=native-O3 -march=native-O2-O3-O01. (CC) gcc options: -std=gnu99 -fopenmp -pthread -ltiff -lfreetype -ljpeg -lXext -lX11 -llzma -lbz2 -lxml2 -lz -lm -lgomp -lpthread

GraphicsMagick

Operation: HWB Color Space

OpenBenchmarking.orgIterations Per Minute, More Is BetterGraphicsMagick 1.3.19Operation: HWB Color Space-Ofast -march=native-O3 -march=native-O2-O3-O04080120160200SE +/- 1.20, N = 3SE +/- 2.42, N = 5SE +/- 2.43, N = 6SE +/- 2.03, N = 3SE +/- 2.02, N = 619716814414198-Ofast -march=native-O3 -march=native-O2-O3-O01. (CC) gcc options: -std=gnu99 -fopenmp -pthread -ltiff -lfreetype -ljpeg -lXext -lX11 -llzma -lbz2 -lxml2 -lz -lm -lgomp -lpthread

GraphicsMagick

Operation: Resizing

OpenBenchmarking.orgIterations Per Minute, More Is BetterGraphicsMagick 1.3.19Operation: Resizing-Ofast -march=native-O3 -march=native-O2-O3-O04080120160200SE +/- 0.00, N = 3SE +/- 0.00, N = 3SE +/- 0.88, N = 3SE +/- 0.58, N = 3SE +/- 0.33, N = 318218217717298-Ofast -march=native-O3 -march=native-O2-O3-O01. (CC) gcc options: -std=gnu99 -fopenmp -pthread -ltiff -lfreetype -ljpeg -lXext -lX11 -llzma -lbz2 -lxml2 -lz -lm -lgomp -lpthread

Timed Apache Compilation

Time To Compile

OpenBenchmarking.orgSeconds, Fewer Is BetterTimed Apache Compilation 2.4.7Time To Compile-O0-Ofast -march=native-O3 -march=native-O2-O3816243240SE +/- 0.28, N = 3SE +/- 0.20, N = 3SE +/- 0.08, N = 3SE +/- 0.68, N = 6SE +/- 0.66, N = 617.6326.3926.8230.3432.72

SciMark

Computational Test: Monte Carlo

OpenBenchmarking.orgMflops, More Is BetterSciMark 2.0Computational Test: Monte Carlo-O3 -march=native -flto-Ofast -march=native-O2-O0-O3-O3 -march=native150300450600750SE +/- 0.02, N = 4SE +/- 0.01, N = 4SE +/- 0.05, N = 4SE +/- 0.18, N = 4SE +/- 8.40, N = 4SE +/- 12.70, N = 4673.31602.01600.06599.65591.22589.31-O3 -march=native -flto-Ofast -march=native-O2-O0-O3-O3 -march=native1. (CXX) g++ options:

SciMark

Computational Test: Fast Fourier Transform

OpenBenchmarking.orgMflops, More Is BetterSciMark 2.0Computational Test: Fast Fourier Transform-O3 -march=native-O2-O3 -march=native -flto-Ofast -march=native-O3-O0100200300400500SE +/- 2.49, N = 4SE +/- 2.76, N = 4SE +/- 1.02, N = 4SE +/- 3.16, N = 4SE +/- 0.68, N = 4SE +/- 1.80, N = 4472.98472.28467.81458.28444.88443.48-O3 -march=native-O2-O3 -march=native -flto-Ofast -march=native-O3-O01. (CXX) g++ options:

GraphicsMagick

Operation: Blur

OpenBenchmarking.orgIterations Per Minute, More Is BetterGraphicsMagick 1.3.19Operation: Blur-O3 -march=native-Ofast -march=native-O3-O2-O0306090120150SE +/- 0.33, N = 3SE +/- 0.33, N = 3SE +/- 1.86, N = 3SE +/- 3.53, N = 6SE +/- 1.15, N = 313813710410066-O3 -march=native-Ofast -march=native-O3-O2-O01. (CC) gcc options: -std=gnu99 -fopenmp -pthread -ltiff -lfreetype -ljpeg -lXext -lX11 -llzma -lbz2 -lxml2 -lz -lm -lgomp -lpthread

Gcrypt Library

CAMELLIA256-ECB Cipher

OpenBenchmarking.orgMicroseconds, Fewer Is BetterGcrypt Library 1.4.4CAMELLIA256-ECB Cipher-O3 -march=native-O2-O3-O3 -march=native -flto-O016003200480064008000SE +/- 28.33, N = 6SE +/- 34.80, N = 3SE +/- 150.41, N = 6SE +/- 26.79, N = 6SE +/- 12.02, N = 317921897197219977317-O3 -march=native-O2-O3-O3 -march=native -flto-O01. (CC) gcc options: -fvisibility=hidden


Phoronix Test Suite v10.8.5