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&grs&sor .
GCC 4.9 Snapshot Compiler Flag Tests Processor Motherboard Chipset Memory Disk Graphics Audio Network OS Kernel Desktop Display Server Display Driver OpenGL Compiler File-System Screen Resolution Core-AVX2 Core-AVX-I Corei7-AVX Corei7 Core2 Nocona Intel Core i7-4900MQ @ 2.80GHz (8 Cores) System76 Gazelle Professional Intel Xeon E3-1200 v3/4th 8192MB 120GB INTEL SSDSC2CW12 Intel 4th Gen Core IGP (1300MHz) Intel Haswell HDMI Realtek RTL8111/8168/8411 + Intel Centrino Advanced-N 6235 Ubuntu 13.10 3.11.0-4-generic (x86_64) Unity 7.1.0 X Server 1.14.2.901 (1.14.3 RC 1) intel 2.21.14 3.1 Mesa 9.2.0 GCC 4.9.0 20130731 ext4 1920x1080 OpenBenchmarking.org Compiler 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 Tests c-ray: Total Time scimark2: Monte Carlo encode-mp3: WAV To MP3 ttsiod-renderer: Phong Rendering With Soft-Shadow Mapping scimark2: Dense LU Matrix Factorization himeno: Poisson Pressure Solver encode-flac: WAV To FLAC graphics-magick: Sharpen scimark2: Sparse Matrix Multiply n-queens: Elapsed Time scimark2: Fast Fourier Transform apache: Static Web Page Serving graphics-magick: Resizing smallpt: Global Illumination Renderer; 100 Samples ffmpeg: H.264 HD To NTSC DV graphics-magick: Local Adaptive Thresholding graphics-magick: HWB Color Space x264: H.264 Video Encoding graphics-magick: Blur encode-ogg: WAV To Ogg scimark2: Jacobi Successive Over-Relaxation primesieve: 1e12 Prime Number Generation Core-AVX2 Core-AVX-I Corei7-AVX Corei7 Core2 Nocona 19.71 595.70 14.30 133.95 2783.23 1770.48 5.31 126 2332.25 42.54 335.89 31291.52 180 29 13.17 116 200 162.96 149 7.06 1142.92 93.19 26.38 595.28 14.08 133.36 2794.16 1868.47 5.59 116 2184.67 44.51 329.12 31007.19 176 29 13.31 116 201 163.77 149 7.06 1142.92 93.17 26.40 594.05 14.07 132.85 2786.85 1803.82 5.59 116 2322.34 44.50 315.45 30875.41 176 29 13.37 116 201 162.86 149 7.06 1142.92 93.15 26.52 596.52 12.57 150.07 2842.55 1746.95 5.09 116 2388.35 44.54 316.62 30666.53 175 30 13.50 115 200 162.76 149 7.08 1140.79 93.14 26.53 595.70 12.88 146.09 2853.98 1747.23 5.21 116 2379.68 44.51 319.57 31064.17 176 30 13.33 115 201 162.10 149 7.06 1140.79 93.15 26.66 698.37 12.64 144.87 2589.06 1695.27 5.29 115 2346.98 45.76 318.08 29830.02 172 30 13.30 114 198 162.14 148 7.07 1140.79 93.31 OpenBenchmarking.org
C-Ray Total Time OpenBenchmarking.org Seconds, Fewer Is Better C-Ray 1.1 Total Time Core-AVX2 Core-AVX-I Corei7-AVX Corei7 Core2 Nocona 6 12 18 24 30 SE +/- 0.01, N = 3 SE +/- 0.01, N = 3 SE +/- 0.02, N = 3 SE +/- 0.01, N = 3 SE +/- 0.02, N = 3 SE +/- 0.02, N = 3 19.71 26.38 26.40 26.52 26.53 26.66 -march=core-avx2 -march=core-avx-i -march=corei7-avx -march=corei7 -march=core2 -march=nocona 1. (CC) gcc options: -lm -lpthread -O3
SciMark Computational Test: Monte Carlo OpenBenchmarking.org Mflops, More Is Better SciMark 2.0 Computational Test: Monte Carlo Nocona Corei7 Core2 Core-AVX2 Core-AVX-I Corei7-AVX 150 300 450 600 750 SE +/- 0.66, N = 4 SE +/- 0.00, N = 4 SE +/- 0.48, N = 4 SE +/- 0.48, N = 4 SE +/- 0.41, N = 4 SE +/- 0.47, N = 4 698.37 596.52 595.70 595.70 595.28 594.05 -march=nocona -march=corei7 -march=core2 -march=core-avx2 -march=core-avx-i -march=corei7-avx 1. (CXX) g++ options: -O3
LAME MP3 Encoding WAV To MP3 OpenBenchmarking.org Seconds, Fewer Is Better LAME MP3 Encoding 3.99.3 WAV To MP3 Corei7 Nocona Core2 Corei7-AVX Core-AVX-I Core-AVX2 4 8 12 16 20 SE +/- 0.00, N = 5 SE +/- 0.01, N = 5 SE +/- 0.01, N = 5 SE +/- 0.00, N = 5 SE +/- 0.01, N = 5 SE +/- 0.02, N = 5 12.57 12.64 12.88 14.07 14.08 14.30 -march=corei7 -march=nocona -march=core2 -march=corei7-avx -march=core-avx-i -march=core-avx2 1. (CC) gcc options: -pipe -O3 -lm
TTSIOD 3D Renderer Phong Rendering With Soft-Shadow Mapping OpenBenchmarking.org FPS, More Is Better TTSIOD 3D Renderer 2.2z Phong Rendering With Soft-Shadow Mapping Corei7 Core2 Nocona Core-AVX2 Core-AVX-I Corei7-AVX 30 60 90 120 150 SE +/- 0.19, N = 3 SE +/- 0.25, N = 3 SE +/- 0.90, N = 3 SE +/- 0.65, N = 3 SE +/- 0.40, N = 3 SE +/- 0.31, N = 3 150.07 146.09 144.87 133.95 133.36 132.85 -march=corei7 -march=core2 -march=nocona -march=core-avx2 -march=core-avx-i -march=corei7-avx 1. (CXX) g++ options: -O3 -fomit-frame-pointer -ffast-math -mtune=native -flto -msse -mrecip -mfpmath=sse -msse2 -mssse3 -lSDL -lstdc++
SciMark Computational Test: Dense LU Matrix Factorization OpenBenchmarking.org Mflops, More Is Better SciMark 2.0 Computational Test: Dense LU Matrix Factorization Core2 Corei7 Core-AVX-I Corei7-AVX Core-AVX2 Nocona 600 1200 1800 2400 3000 SE +/- 4.81, N = 4 SE +/- 1.89, N = 4 SE +/- 3.50, N = 4 SE +/- 1.82, N = 4 SE +/- 3.48, N = 4 SE +/- 12.57, N = 2 2853.98 2842.55 2794.16 2786.85 2783.23 2589.06 -march=core2 -march=corei7 -march=core-avx-i -march=corei7-avx -march=core-avx2 -march=nocona 1. (CXX) g++ options: -O3
Himeno Benchmark Poisson Pressure Solver OpenBenchmarking.org MFLOPS, More Is Better Himeno Benchmark 3.0 Poisson Pressure Solver Core-AVX-I Corei7-AVX Core-AVX2 Core2 Corei7 Nocona 400 800 1200 1600 2000 SE +/- 0.59, N = 3 SE +/- 24.88, N = 6 SE +/- 29.31, N = 4 SE +/- 1.11, N = 3 SE +/- 1.79, N = 3 SE +/- 0.23, N = 3 1868.47 1803.82 1770.48 1747.23 1746.95 1695.27 -march=core-avx-i -march=corei7-avx -march=core-avx2 -march=core2 -march=corei7 -march=nocona 1. (CC) gcc options: -O3
FLAC Audio Encoding WAV To FLAC OpenBenchmarking.org Seconds, Fewer Is Better FLAC Audio Encoding 1.3.0 WAV To FLAC Corei7 Core2 Nocona Core-AVX2 Core-AVX-I Corei7-AVX 1.2578 2.5156 3.7734 5.0312 6.289 SE +/- 0.00, N = 5 SE +/- 0.00, N = 5 SE +/- 0.00, N = 5 SE +/- 0.00, N = 5 SE +/- 0.00, N = 5 SE +/- 0.00, N = 5 5.09 5.21 5.29 5.31 5.59 5.59 -march=corei7 -march=core2 -march=nocona -march=core-avx2 -march=core-avx-i -march=corei7-avx 1. (CXX) g++ options: -O3 -fvisibility=hidden -logg -lm
GraphicsMagick Operation: Sharpen OpenBenchmarking.org Iterations Per Minute, More Is Better GraphicsMagick 1.3.16 Operation: Sharpen Core-AVX2 Core2 Corei7 Corei7-AVX Core-AVX-I Nocona 30 60 90 120 150 SE +/- 0.00, N = 3 SE +/- 0.00, N = 3 SE +/- 0.00, N = 3 SE +/- 0.00, N = 3 SE +/- 0.00, N = 3 SE +/- 0.33, N = 3 126 116 116 116 116 115 -march=core-avx2 -march=core2 -march=corei7 -march=corei7-avx -march=core-avx-i -march=nocona 1. (CC) gcc options: -std=gnu99 -fopenmp -O3 -pthread -lXext -lSM -lICE -lX11 -lbz2 -lz -lm -lgomp -lpthread
SciMark Computational Test: Sparse Matrix Multiply OpenBenchmarking.org Mflops, More Is Better SciMark 2.0 Computational Test: Sparse Matrix Multiply Corei7 Core2 Nocona Core-AVX2 Corei7-AVX Core-AVX-I 500 1000 1500 2000 2500 SE +/- 2.84, N = 4 SE +/- 3.31, N = 4 SE +/- 32.43, N = 4 SE +/- 3.18, N = 4 SE +/- 3.15, N = 4 SE +/- 9.72, N = 4 2388.35 2379.68 2346.98 2332.25 2322.34 2184.67 -march=corei7 -march=core2 -march=nocona -march=core-avx2 -march=corei7-avx -march=core-avx-i 1. (CXX) g++ options: -O3
N-Queens Elapsed Time OpenBenchmarking.org Seconds, Fewer Is Better N-Queens 1.0 Elapsed Time Core-AVX2 Corei7-AVX Core-AVX-I Core2 Corei7 Nocona 10 20 30 40 50 SE +/- 0.01, N = 3 SE +/- 0.00, N = 3 SE +/- 0.00, N = 3 SE +/- 0.00, N = 3 SE +/- 0.02, N = 3 SE +/- 0.00, N = 3 42.54 44.50 44.51 44.51 44.54 45.76 -march=core-avx2 -march=corei7-avx -march=core-avx-i -march=core2 -march=corei7 -march=nocona 1. (CC) gcc options: -static -fopenmp -O3
SciMark Computational Test: Fast Fourier Transform OpenBenchmarking.org Mflops, More Is Better SciMark 2.0 Computational Test: Fast Fourier Transform Core-AVX2 Core-AVX-I Core2 Nocona Corei7 Corei7-AVX 70 140 210 280 350 SE +/- 1.12, N = 4 SE +/- 1.63, N = 4 SE +/- 0.57, N = 4 SE +/- 0.48, N = 4 SE +/- 1.20, N = 4 SE +/- 0.73, N = 4 335.89 329.12 319.57 318.08 316.62 315.45 -march=core-avx2 -march=core-avx-i -march=core2 -march=nocona -march=corei7 -march=corei7-avx 1. (CXX) g++ options: -O3
Apache Benchmark Static Web Page Serving OpenBenchmarking.org Requests Per Second, More Is Better Apache Benchmark 2.4.3 Static Web Page Serving Core-AVX2 Core2 Core-AVX-I Corei7-AVX Corei7 Nocona 7K 14K 21K 28K 35K SE +/- 88.76, N = 3 SE +/- 43.24, N = 3 SE +/- 162.72, N = 3 SE +/- 191.20, N = 3 SE +/- 225.32, N = 3 SE +/- 111.38, N = 3 31291.52 31064.17 31007.19 30875.41 30666.53 29830.02 -march=core-avx2 -march=core2 -march=core-avx-i -march=corei7-avx -march=corei7 -march=nocona 1. (CC) gcc options: -shared -fPIC -pthread -O3
GraphicsMagick Operation: Resizing OpenBenchmarking.org Iterations Per Minute, More Is Better GraphicsMagick 1.3.16 Operation: Resizing Core-AVX2 Core2 Corei7-AVX Core-AVX-I Corei7 Nocona 40 80 120 160 200 SE +/- 0.67, N = 3 SE +/- 0.00, N = 3 SE +/- 0.33, N = 3 SE +/- 0.00, N = 3 SE +/- 0.00, N = 3 SE +/- 0.33, N = 3 180 176 176 176 175 172 -march=core-avx2 -march=core2 -march=corei7-avx -march=core-avx-i -march=corei7 -march=nocona 1. (CC) gcc options: -std=gnu99 -fopenmp -O3 -pthread -lXext -lSM -lICE -lX11 -lbz2 -lz -lm -lgomp -lpthread
Smallpt Global Illumination Renderer; 100 Samples OpenBenchmarking.org Seconds, Fewer Is Better Smallpt 1.0 Global Illumination Renderer; 100 Samples Core-AVX2 Core-AVX-I Corei7-AVX Corei7 Core2 Nocona 7 14 21 28 35 SE +/- 0.33, N = 3 SE +/- 0.33, N = 3 SE +/- 0.33, N = 3 SE +/- 0.00, N = 3 SE +/- 0.00, N = 3 SE +/- 0.00, N = 3 29 29 29 30 30 30 -march=core-avx2 -march=core-avx-i -march=corei7-avx -march=corei7 -march=core2 -march=nocona 1. (CXX) g++ options: -fopenmp -O3
FFmpeg H.264 HD To NTSC DV OpenBenchmarking.org Seconds, Fewer Is Better FFmpeg 2.0 H.264 HD To NTSC DV Core-AVX2 Nocona Core-AVX-I Core2 Corei7-AVX Corei7 3 6 9 12 15 SE +/- 0.05, N = 3 SE +/- 0.04, N = 3 SE +/- 0.04, N = 3 SE +/- 0.03, N = 3 SE +/- 0.07, N = 3 SE +/- 0.06, N = 3 13.17 13.30 13.31 13.33 13.37 13.50 -march=core-avx2 -march=nocona -march=core-avx-i -march=core2 -march=corei7-avx -march=corei7 1. (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
GraphicsMagick Operation: Local Adaptive Thresholding OpenBenchmarking.org Iterations Per Minute, More Is Better GraphicsMagick 1.3.16 Operation: Local Adaptive Thresholding Corei7-AVX Core-AVX-I Core-AVX2 Core2 Corei7 Nocona 30 60 90 120 150 SE +/- 0.33, N = 3 SE +/- 0.33, N = 3 SE +/- 0.33, N = 3 SE +/- 0.00, N = 3 SE +/- 0.00, N = 3 SE +/- 0.33, N = 3 116 116 116 115 115 114 -march=corei7-avx -march=core-avx-i -march=core-avx2 -march=core2 -march=corei7 -march=nocona 1. (CC) gcc options: -std=gnu99 -fopenmp -O3 -pthread -lXext -lSM -lICE -lX11 -lbz2 -lz -lm -lgomp -lpthread
GraphicsMagick Operation: HWB Color Space OpenBenchmarking.org Iterations Per Minute, More Is Better GraphicsMagick 1.3.16 Operation: HWB Color Space Core2 Corei7-AVX Core-AVX-I Corei7 Core-AVX2 Nocona 40 80 120 160 200 SE +/- 0.33, N = 3 SE +/- 0.33, N = 3 SE +/- 0.00, N = 3 SE +/- 0.33, N = 3 SE +/- 0.33, N = 3 SE +/- 0.00, N = 3 201 201 201 200 200 198 -march=core2 -march=corei7-avx -march=core-avx-i -march=corei7 -march=core-avx2 -march=nocona 1. (CC) gcc options: -std=gnu99 -fopenmp -O3 -pthread -lXext -lSM -lICE -lX11 -lbz2 -lz -lm -lgomp -lpthread
x264 H.264 Video Encoding OpenBenchmarking.org Frames Per Second, More Is Better x264 2013-06-08 H.264 Video Encoding Core-AVX-I Core-AVX2 Corei7-AVX Corei7 Nocona Core2 40 80 120 160 200 SE +/- 0.36, N = 5 SE +/- 0.32, N = 5 SE +/- 0.58, N = 5 SE +/- 0.56, N = 5 SE +/- 0.30, N = 5 SE +/- 0.45, N = 5 163.77 162.96 162.86 162.76 162.14 162.10 -march=core-avx-i -march=core-avx2 -march=corei7-avx -march=corei7 -march=nocona -march=core2 1. (CC) gcc options: -ldl -m64 -lm -lpthread -O3 -ffast-math -std=gnu99 -fomit-frame-pointer -fno-tree-vectorize
GraphicsMagick Operation: Blur OpenBenchmarking.org Iterations Per Minute, More Is Better GraphicsMagick 1.3.16 Operation: Blur Core2 Corei7 Corei7-AVX Core-AVX-I Core-AVX2 Nocona 30 60 90 120 150 SE +/- 0.00, N = 3 SE +/- 0.00, N = 3 SE +/- 0.00, N = 3 SE +/- 0.33, N = 3 SE +/- 0.00, N = 3 SE +/- 0.33, N = 3 149 149 149 149 149 148 -march=core2 -march=corei7 -march=corei7-avx -march=core-avx-i -march=core-avx2 -march=nocona 1. (CC) gcc options: -std=gnu99 -fopenmp -O3 -pthread -lXext -lSM -lICE -lX11 -lbz2 -lz -lm -lgomp -lpthread
Ogg Encoding WAV To Ogg OpenBenchmarking.org Seconds, Fewer Is Better Ogg Encoding 1.3.0 WAV To Ogg Core-AVX2 Core-AVX-I Corei7-AVX Core2 Nocona Corei7 2 4 6 8 10 SE +/- 0.00, N = 5 SE +/- 0.01, N = 5 SE +/- 0.00, N = 5 SE +/- 0.01, N = 5 SE +/- 0.01, N = 5 SE +/- 0.01, N = 5 7.06 7.06 7.06 7.06 7.07 7.08 -march=core-avx2 -march=core-avx-i -march=corei7-avx -march=core2 -march=nocona -march=corei7 1. (CC) gcc options: -O2 -ffast-math -fsigned-char -O3 -lm -logg
SciMark Computational Test: Jacobi Successive Over-Relaxation OpenBenchmarking.org Mflops, More Is Better SciMark 2.0 Computational Test: Jacobi Successive Over-Relaxation Corei7-AVX Core-AVX-I Core-AVX2 Nocona Core2 Corei7 200 400 600 800 1000 SE +/- 1.07, N = 4 SE +/- 1.07, N = 4 SE +/- 1.07, N = 4 SE +/- 1.07, N = 4 SE +/- 1.07, N = 4 SE +/- 1.07, N = 4 1142.92 1142.92 1142.92 1140.79 1140.79 1140.79 -march=corei7-avx -march=core-avx-i -march=core-avx2 -march=nocona -march=core2 -march=corei7 1. (CXX) g++ options: -O3
Primesieve 1e12 Prime Number Generation OpenBenchmarking.org Seconds, Fewer Is Better Primesieve 4.2 1e12 Prime Number Generation Corei7 Corei7-AVX Core2 Core-AVX-I Core-AVX2 Nocona 20 40 60 80 100 SE +/- 0.37, N = 3 SE +/- 0.35, N = 3 SE +/- 0.41, N = 3 SE +/- 0.43, N = 3 SE +/- 0.44, N = 3 SE +/- 0.33, N = 3 93.14 93.15 93.15 93.17 93.19 93.31 1. (CXX) g++ options: -O2 -fopenmp
Phoronix Test Suite v10.8.5