GCC 4.9 Snapshot Compiler Flag Tests

GCC 4.9 compiler optimization tests of an Intel Core i7 Haswell CPU and applying different CFLAGS/CXXFLAGS to look at impact of core-avx2 CPU optimizations and other x86_64 -march= options. Benchmarks by Michael Larabel.

HTML result view exported from: https://openbenchmarking.org/result/1308319-SO-GCC49SNAP71&grw&sor.

GCC 4.9 Snapshot Compiler Flag TestsProcessorMotherboardChipsetMemoryDiskGraphicsAudioNetworkOSKernelDesktopDisplay ServerDisplay DriverOpenGLCompilerFile-SystemScreen ResolutionCore-AVX2Core-AVX-ICorei7-AVXCorei7Core2NoconaIntel Core i7-4900MQ @ 2.80GHz (8 Cores)System76 Gazelle ProfessionalIntel Xeon E3-1200 v3/4th8192MB120GB INTEL SSDSC2CW12Intel 4th Gen Core IGP (1300MHz)Intel Haswell HDMIRealtek RTL8111/8168/8411 + Intel Centrino Advanced-N 6235Ubuntu 13.103.11.0-4-generic (x86_64)Unity 7.1.0X Server 1.14.2.901 (1.14.3 RC 1)intel 2.21.143.1 Mesa 9.2.0GCC 4.9.0 20130731ext41920x1080OpenBenchmarking.orgCompiler Details- --build=x86_64-linux-gnu --disable-browser-plugin --disable-nls --disable-werror --enable-checking=yes --enable-clocale=gnu --enable-gnu-unique-object --enable-gtk-cairo --enable-java-awt=gtk --enable-java-home --enable-languages=c,ada,c++,java,go,fortran,objc,obj-c++ --enable-libstdcxx-debug --enable-libstdcxx-time=yes --enable-multiarch --enable-objc-gc --enable-plugin --enable-shared --host=x86_64-linux-gnu --target=x86_64-linux-gnu --with-abi=m64 --with-arch-32=i686 --with-arch-directory=amd64 --with-ecj-jar=/usr/share/java/eclipse-ecj.jar --with-java-home=/usr/lib/jvm/java-1.5.0-gcj-4.9-snap-amd64/jre --with-jvm-jar-dir=/usr/lib/jvm-exports/java-1.5.0-gcj-4.9-snap-amd64 --with-jvm-root-dir=/usr/lib/jvm/java-1.5.0-gcj-4.9-snap-amd64 --with-multilib-list=m32,m64,mx32 --with-tune=generic -v Processor Details- Scaling Governor: acpi-cpufreq ondemand

GCC 4.9 Snapshot Compiler Flag Testsscimark2: Monte Carloscimark2: Fast Fourier Transformscimark2: Sparse Matrix Multiplyscimark2: Dense LU Matrix Factorizationscimark2: Jacobi Successive Over-Relaxationencode-flac: WAV To FLACencode-mp3: WAV To MP3encode-ogg: WAV To Ogghimeno: Poisson Pressure Solvern-queens: Elapsed Timeprimesieve: 1e12 Prime Number Generationgraphics-magick: Blurgraphics-magick: Sharpengraphics-magick: Resizinggraphics-magick: HWB Color Spacegraphics-magick: Local Adaptive Thresholdingx264: H.264 Video Encodingc-ray: Total Timettsiod-renderer: Phong Rendering With Soft-Shadow Mappingffmpeg: H.264 HD To NTSC DVsmallpt: Global Illumination Renderer; 100 Samplesapache: Static Web Page ServingCore-AVX2Core-AVX-ICorei7-AVXCorei7Core2Nocona595.70335.892332.252783.231142.925.3114.307.061770.4842.5493.19149126180200116162.9619.71133.9513.172931291.52595.28329.122184.672794.161142.925.5914.087.061868.4744.5193.17149116176201116163.7726.38133.3613.312931007.19594.05315.452322.342786.851142.925.5914.077.061803.8244.5093.15149116176201116162.8626.40132.8513.372930875.41596.52316.622388.352842.551140.795.0912.577.081746.9544.5493.14149116175200115162.7626.52150.0713.503030666.53595.70319.572379.682853.981140.795.2112.887.061747.2344.5193.15149116176201115162.1026.53146.0913.333031064.17698.37318.082346.982589.061140.795.2912.647.071695.2745.7693.31148115172198114162.1426.66144.8713.303029830.02OpenBenchmarking.org

SciMark

Computational Test: Monte Carlo

OpenBenchmarking.orgMflops, More Is BetterSciMark 2.0Computational Test: Monte CarloNoconaCorei7Core2Core-AVX2Core-AVX-ICorei7-AVX150300450600750SE +/- 0.66, N = 4SE +/- 0.00, N = 4SE +/- 0.48, N = 4SE +/- 0.48, N = 4SE +/- 0.41, N = 4SE +/- 0.47, N = 4698.37596.52595.70595.70595.28594.05-march=nocona-march=corei7-march=core2-march=core-avx2-march=core-avx-i-march=corei7-avx1. (CXX) g++ options: -O3

SciMark

Computational Test: Fast Fourier Transform

OpenBenchmarking.orgMflops, More Is BetterSciMark 2.0Computational Test: Fast Fourier TransformCore-AVX2Core-AVX-ICore2NoconaCorei7Corei7-AVX70140210280350SE +/- 1.12, N = 4SE +/- 1.63, N = 4SE +/- 0.57, N = 4SE +/- 0.48, N = 4SE +/- 1.20, N = 4SE +/- 0.73, N = 4335.89329.12319.57318.08316.62315.45-march=core-avx2-march=core-avx-i-march=core2-march=nocona-march=corei7-march=corei7-avx1. (CXX) g++ options: -O3

SciMark

Computational Test: Sparse Matrix Multiply

OpenBenchmarking.orgMflops, More Is BetterSciMark 2.0Computational Test: Sparse Matrix MultiplyCorei7Core2NoconaCore-AVX2Corei7-AVXCore-AVX-I5001000150020002500SE +/- 2.84, N = 4SE +/- 3.31, N = 4SE +/- 32.43, N = 4SE +/- 3.18, N = 4SE +/- 3.15, N = 4SE +/- 9.72, N = 42388.352379.682346.982332.252322.342184.67-march=corei7-march=core2-march=nocona-march=core-avx2-march=corei7-avx-march=core-avx-i1. (CXX) g++ options: -O3

SciMark

Computational Test: Dense LU Matrix Factorization

OpenBenchmarking.orgMflops, More Is BetterSciMark 2.0Computational Test: Dense LU Matrix FactorizationCore2Corei7Core-AVX-ICorei7-AVXCore-AVX2Nocona6001200180024003000SE +/- 4.81, N = 4SE +/- 1.89, N = 4SE +/- 3.50, N = 4SE +/- 1.82, N = 4SE +/- 3.48, N = 4SE +/- 12.57, N = 22853.982842.552794.162786.852783.232589.06-march=core2-march=corei7-march=core-avx-i-march=corei7-avx-march=core-avx2-march=nocona1. (CXX) g++ options: -O3

SciMark

Computational Test: Jacobi Successive Over-Relaxation

OpenBenchmarking.orgMflops, More Is BetterSciMark 2.0Computational Test: Jacobi Successive Over-RelaxationCorei7-AVXCore-AVX-ICore-AVX2NoconaCore2Corei72004006008001000SE +/- 1.07, N = 4SE +/- 1.07, N = 4SE +/- 1.07, N = 4SE +/- 1.07, N = 4SE +/- 1.07, N = 4SE +/- 1.07, N = 41142.921142.921142.921140.791140.791140.79-march=corei7-avx-march=core-avx-i-march=core-avx2-march=nocona-march=core2-march=corei71. (CXX) g++ options: -O3

FLAC Audio Encoding

WAV To FLAC

OpenBenchmarking.orgSeconds, Fewer Is BetterFLAC Audio Encoding 1.3.0WAV To FLACCorei7Core2NoconaCore-AVX2Core-AVX-ICorei7-AVX1.25782.51563.77345.03126.289SE +/- 0.00, N = 5SE +/- 0.00, N = 5SE +/- 0.00, N = 5SE +/- 0.00, N = 5SE +/- 0.00, N = 5SE +/- 0.00, N = 55.095.215.295.315.595.59-march=corei7-march=core2-march=nocona-march=core-avx2-march=core-avx-i-march=corei7-avx1. (CXX) g++ options: -O3 -fvisibility=hidden -logg -lm

LAME MP3 Encoding

WAV To MP3

OpenBenchmarking.orgSeconds, Fewer Is BetterLAME MP3 Encoding 3.99.3WAV To MP3Corei7NoconaCore2Corei7-AVXCore-AVX-ICore-AVX248121620SE +/- 0.00, N = 5SE +/- 0.01, N = 5SE +/- 0.01, N = 5SE +/- 0.00, N = 5SE +/- 0.01, N = 5SE +/- 0.02, N = 512.5712.6412.8814.0714.0814.30-march=corei7-march=nocona-march=core2-march=corei7-avx-march=core-avx-i-march=core-avx21. (CC) gcc options: -pipe -O3 -lm

Ogg Encoding

WAV To Ogg

OpenBenchmarking.orgSeconds, Fewer Is BetterOgg Encoding 1.3.0WAV To OggCore-AVX2Core-AVX-ICorei7-AVXCore2NoconaCorei7246810SE +/- 0.00, N = 5SE +/- 0.01, N = 5SE +/- 0.00, N = 5SE +/- 0.01, N = 5SE +/- 0.01, N = 5SE +/- 0.01, N = 57.067.067.067.067.077.08-march=core-avx2-march=core-avx-i-march=corei7-avx-march=core2-march=nocona-march=corei71. (CC) gcc options: -O2 -ffast-math -fsigned-char -O3 -lm -logg

Himeno Benchmark

Poisson Pressure Solver

OpenBenchmarking.orgMFLOPS, More Is BetterHimeno Benchmark 3.0Poisson Pressure SolverCore-AVX-ICorei7-AVXCore-AVX2Core2Corei7Nocona400800120016002000SE +/- 0.59, N = 3SE +/- 24.88, N = 6SE +/- 29.31, N = 4SE +/- 1.11, N = 3SE +/- 1.79, N = 3SE +/- 0.23, N = 31868.471803.821770.481747.231746.951695.27-march=core-avx-i-march=corei7-avx-march=core-avx2-march=core2-march=corei7-march=nocona1. (CC) gcc options: -O3

N-Queens

Elapsed Time

OpenBenchmarking.orgSeconds, Fewer Is BetterN-Queens 1.0Elapsed TimeCore-AVX2Corei7-AVXCore-AVX-ICore2Corei7Nocona1020304050SE +/- 0.01, N = 3SE +/- 0.00, N = 3SE +/- 0.00, N = 3SE +/- 0.00, N = 3SE +/- 0.02, N = 3SE +/- 0.00, N = 342.5444.5044.5144.5144.5445.76-march=core-avx2-march=corei7-avx-march=core-avx-i-march=core2-march=corei7-march=nocona1. (CC) gcc options: -static -fopenmp -O3

Primesieve

1e12 Prime Number Generation

OpenBenchmarking.orgSeconds, Fewer Is BetterPrimesieve 4.21e12 Prime Number GenerationCorei7Corei7-AVXCore2Core-AVX-ICore-AVX2Nocona20406080100SE +/- 0.37, N = 3SE +/- 0.35, N = 3SE +/- 0.41, N = 3SE +/- 0.43, N = 3SE +/- 0.44, N = 3SE +/- 0.33, N = 393.1493.1593.1593.1793.1993.311. (CXX) g++ options: -O2 -fopenmp

GraphicsMagick

Operation: Blur

OpenBenchmarking.orgIterations Per Minute, More Is BetterGraphicsMagick 1.3.16Operation: BlurCore2Corei7Corei7-AVXCore-AVX-ICore-AVX2Nocona306090120150SE +/- 0.00, N = 3SE +/- 0.00, N = 3SE +/- 0.00, N = 3SE +/- 0.33, N = 3SE +/- 0.00, N = 3SE +/- 0.33, N = 3149149149149149148-march=core2-march=corei7-march=corei7-avx-march=core-avx-i-march=core-avx2-march=nocona1. (CC) gcc options: -std=gnu99 -fopenmp -O3 -pthread -lXext -lSM -lICE -lX11 -lbz2 -lz -lm -lgomp -lpthread

GraphicsMagick

Operation: Sharpen

OpenBenchmarking.orgIterations Per Minute, More Is BetterGraphicsMagick 1.3.16Operation: SharpenCore-AVX2Core2Corei7Corei7-AVXCore-AVX-INocona306090120150SE +/- 0.00, N = 3SE +/- 0.00, N = 3SE +/- 0.00, N = 3SE +/- 0.00, N = 3SE +/- 0.00, N = 3SE +/- 0.33, N = 3126116116116116115-march=core-avx2-march=core2-march=corei7-march=corei7-avx-march=core-avx-i-march=nocona1. (CC) gcc options: -std=gnu99 -fopenmp -O3 -pthread -lXext -lSM -lICE -lX11 -lbz2 -lz -lm -lgomp -lpthread

GraphicsMagick

Operation: Resizing

OpenBenchmarking.orgIterations Per Minute, More Is BetterGraphicsMagick 1.3.16Operation: ResizingCore-AVX2Core2Corei7-AVXCore-AVX-ICorei7Nocona4080120160200SE +/- 0.67, N = 3SE +/- 0.00, N = 3SE +/- 0.33, N = 3SE +/- 0.00, N = 3SE +/- 0.00, N = 3SE +/- 0.33, N = 3180176176176175172-march=core-avx2-march=core2-march=corei7-avx-march=core-avx-i-march=corei7-march=nocona1. (CC) gcc options: -std=gnu99 -fopenmp -O3 -pthread -lXext -lSM -lICE -lX11 -lbz2 -lz -lm -lgomp -lpthread

GraphicsMagick

Operation: HWB Color Space

OpenBenchmarking.orgIterations Per Minute, More Is BetterGraphicsMagick 1.3.16Operation: HWB Color SpaceCore2Corei7-AVXCore-AVX-ICorei7Core-AVX2Nocona4080120160200SE +/- 0.33, N = 3SE +/- 0.33, N = 3SE +/- 0.00, N = 3SE +/- 0.33, N = 3SE +/- 0.33, N = 3SE +/- 0.00, N = 3201201201200200198-march=core2-march=corei7-avx-march=core-avx-i-march=corei7-march=core-avx2-march=nocona1. (CC) gcc options: -std=gnu99 -fopenmp -O3 -pthread -lXext -lSM -lICE -lX11 -lbz2 -lz -lm -lgomp -lpthread

GraphicsMagick

Operation: Local Adaptive Thresholding

OpenBenchmarking.orgIterations Per Minute, More Is BetterGraphicsMagick 1.3.16Operation: Local Adaptive ThresholdingCorei7-AVXCore-AVX-ICore-AVX2Core2Corei7Nocona306090120150SE +/- 0.33, N = 3SE +/- 0.33, N = 3SE +/- 0.33, N = 3SE +/- 0.00, N = 3SE +/- 0.00, N = 3SE +/- 0.33, N = 3116116116115115114-march=corei7-avx-march=core-avx-i-march=core-avx2-march=core2-march=corei7-march=nocona1. (CC) gcc options: -std=gnu99 -fopenmp -O3 -pthread -lXext -lSM -lICE -lX11 -lbz2 -lz -lm -lgomp -lpthread

x264

H.264 Video Encoding

OpenBenchmarking.orgFrames Per Second, More Is Betterx264 2013-06-08H.264 Video EncodingCore-AVX-ICore-AVX2Corei7-AVXCorei7NoconaCore24080120160200SE +/- 0.36, N = 5SE +/- 0.32, N = 5SE +/- 0.58, N = 5SE +/- 0.56, N = 5SE +/- 0.30, N = 5SE +/- 0.45, N = 5163.77162.96162.86162.76162.14162.10-march=core-avx-i-march=core-avx2-march=corei7-avx-march=corei7-march=nocona-march=core21. (CC) gcc options: -ldl -m64 -lm -lpthread -O3 -ffast-math -std=gnu99 -fomit-frame-pointer -fno-tree-vectorize

C-Ray

Total Time

OpenBenchmarking.orgSeconds, Fewer Is BetterC-Ray 1.1Total TimeCore-AVX2Core-AVX-ICorei7-AVXCorei7Core2Nocona612182430SE +/- 0.01, N = 3SE +/- 0.01, N = 3SE +/- 0.02, N = 3SE +/- 0.01, N = 3SE +/- 0.02, N = 3SE +/- 0.02, N = 319.7126.3826.4026.5226.5326.66-march=core-avx2-march=core-avx-i-march=corei7-avx-march=corei7-march=core2-march=nocona1. (CC) gcc options: -lm -lpthread -O3

TTSIOD 3D Renderer

Phong Rendering With Soft-Shadow Mapping

OpenBenchmarking.orgFPS, More Is BetterTTSIOD 3D Renderer 2.2zPhong Rendering With Soft-Shadow MappingCorei7Core2NoconaCore-AVX2Core-AVX-ICorei7-AVX306090120150SE +/- 0.19, N = 3SE +/- 0.25, N = 3SE +/- 0.90, N = 3SE +/- 0.65, N = 3SE +/- 0.40, N = 3SE +/- 0.31, N = 3150.07146.09144.87133.95133.36132.85-march=corei7-march=core2-march=nocona-march=core-avx2-march=core-avx-i-march=corei7-avx1. (CXX) g++ options: -O3 -fomit-frame-pointer -ffast-math -mtune=native -flto -msse -mrecip -mfpmath=sse -msse2 -mssse3 -lSDL -lstdc++

FFmpeg

H.264 HD To NTSC DV

OpenBenchmarking.orgSeconds, Fewer Is BetterFFmpeg 2.0H.264 HD To NTSC DVCore-AVX2NoconaCore-AVX-ICore2Corei7-AVXCorei73691215SE +/- 0.05, N = 3SE +/- 0.04, N = 3SE +/- 0.04, N = 3SE +/- 0.03, N = 3SE +/- 0.07, N = 3SE +/- 0.06, N = 313.1713.3013.3113.3313.3713.50-march=core-avx2-march=nocona-march=core-avx-i-march=core2-march=corei7-avx-march=corei71. (CC) gcc options: -lavdevice -lavfilter -lavformat -lavcodec -lswresample -lswscale -lavutil -ldl -lasound -lSDL -lm -pthread -lbz2 -O3 -std=c99 -fomit-frame-pointer -fno-math-errno -fno-signed-zeros -fno-tree-vectorize -MMD -MF -MT

Smallpt

Global Illumination Renderer; 100 Samples

OpenBenchmarking.orgSeconds, Fewer Is BetterSmallpt 1.0Global Illumination Renderer; 100 SamplesCore-AVX2Core-AVX-ICorei7-AVXCorei7Core2Nocona714212835SE +/- 0.33, N = 3SE +/- 0.33, N = 3SE +/- 0.33, N = 3SE +/- 0.00, N = 3SE +/- 0.00, N = 3SE +/- 0.00, N = 3292929303030-march=core-avx2-march=core-avx-i-march=corei7-avx-march=corei7-march=core2-march=nocona1. (CXX) g++ options: -fopenmp -O3

Apache Benchmark

Static Web Page Serving

OpenBenchmarking.orgRequests Per Second, More Is BetterApache Benchmark 2.4.3Static Web Page ServingCore-AVX2Core2Core-AVX-ICorei7-AVXCorei7Nocona7K14K21K28K35KSE +/- 88.76, N = 3SE +/- 43.24, N = 3SE +/- 162.72, N = 3SE +/- 191.20, N = 3SE +/- 225.32, N = 3SE +/- 111.38, N = 331291.5231064.1731007.1930875.4130666.5329830.02-march=core-avx2-march=core2-march=core-avx-i-march=corei7-avx-march=corei7-march=nocona1. (CC) gcc options: -shared -fPIC -pthread -O3


Phoronix Test Suite v10.8.5