Intel Haswell GCC 4.8 core-avx2 Tuning

Testing Intel Core i7 4770K with different CFLAGS/CXXFLAGS to look at the core-avx2 Haswell GCC 4.8.1 compiler optimizations. Benchmarks by Michael Larabel of Phoronix for a future article.

HTML result view exported from: https://openbenchmarking.org/result/1306150-PTS-INTELHAS05&sor&grs.

Intel Haswell GCC 4.8 core-avx2 TuningProcessorMotherboardChipsetMemoryDiskGraphicsAudioMonitorNetworkOSKernelDesktopDisplay ServerDisplay DriverOpenGLCompilerFile-SystemScreen Resolutionnoconacore2corei7corei7-avxcore-avx-icore-avx2Intel Core i7-4770K @ 3.50GHz (8 Cores)Intel DH87RLIntel Haswell DRAM15360MB240GB OCZ VERTEX3Intel Haswell IGPIntel Haswell HDMIVA2431Intel Connection I217-VUbuntu 13.043.10.0-999-generic (x86_64)Unity 7.0.0X Server 1.13.3intel 2.21.93.0 Mesa 9.2.0-devel (git-a2e3b1c)GCC 4.8.1 + LLVM 3.2ext41920x1080OpenBenchmarking.orgCompiler Details- --enable-checking=release --enable-languages=c,c++,fortranProcessor Details- Scaling Governor: acpi- freq ondemand

Intel Haswell GCC 4.8 core-avx2 Tuninggraphics-magick: Sharpenc-ray: Total Timehimeno: Poisson Pressure Solvergraphics-magick: Blurgraphics-magick: Resizingscimark2: Fast Fourier Transformsmallpt: Global Illumination Renderer; 100 Samplesttsiod-renderer: Phong Rendering With Soft-Shadow Mappingbuild-imagemagick: Time To Compilehmmer: Pfam Database Searchbotan: Tigerscimark2: Monte Carloapache: Static Web Page Servinggraphics-magick: Local Adaptive Thresholdingscimark2: Dense LU Matrix Factorizationffmpeg: H.264 HD To NTSC DVx264: H.264 Video Encodingbuild-linux-kernel: Time To Compilebotan: CAST-256botan: AES-256noconacore2corei7corei7-avxcore-avx-icore-avx28323.071517.03115157245.0726122.0276.9810.16438.78615.3324888.111181825.7312.94156.8097.8995.48157.978422.951564.22117160250.9326121.5879.0310.14438.87616.2125606.171201859.9713.16156.7497.6395.80158.358422.951560.18116160249.1126123.1479.6410.22427.31616.6525490.141201863.1912.93156.0697.7795.54157.969622.841404.92122166251.8626117.7180.9110.62442.47616.6525580.441191851.1012.86155.6398.1095.77158.199622.831630.12122167247.3526116.5481.0610.45440.37615.7625549.841201824.2813.00156.0897.8595.79158.3113617.021282.30138182226.5724119.7880.6610.55424.56596.1625644.101211817.0313.01155.1897.2595.76158.43OpenBenchmarking.org

GraphicsMagick

Operation: Sharpen

OpenBenchmarking.orgIterations Per Minute, More Is BetterGraphicsMagick 1.3.16Operation: Sharpencore-avx2core-avx-icorei7-avxcorei7core2nocona306090120150SE +/- 0.00, N = 3SE +/- 0.00, N = 3SE +/- 0.00, N = 3SE +/- 0.00, N = 3SE +/- 0.00, N = 3SE +/- 0.00, N = 31369696848483-march=core-avx2-march=core-avx-i-march=corei7-avx-march=corei7-march=core2-march=nocona1. (CC) gcc options: -std=gnu99 -fopenmp -O3 -pthread -ljbig -ljpeg -lXext -lSM -lICE -lX11 -llzma -lbz2 -lz -lm -lpthread

C-Ray

Total Time

OpenBenchmarking.orgSeconds, Fewer Is BetterC-Ray 1.1Total Timecore-avx2core-avx-icorei7-avxcore2corei7nocona612182430SE +/- 0.00, N = 3SE +/- 0.00, N = 3SE +/- 0.01, N = 3SE +/- 0.01, N = 3SE +/- 0.01, N = 3SE +/- 0.02, N = 317.0222.8322.8422.9522.9523.07-march=core-avx2-march=core-avx-i-march=corei7-avx-march=core2-march=corei7-march=nocona1. (CC) gcc options: -lm -lpthread -O3

Himeno Benchmark

Poisson Pressure Solver

OpenBenchmarking.orgMFLOPS, More Is BetterHimeno Benchmark 3.0Poisson Pressure Solvercore-avx-icore2corei7noconacorei7-avxcore-avx2400800120016002000SE +/- 1.05, N = 3SE +/- 3.07, N = 3SE +/- 0.75, N = 3SE +/- 1.20, N = 3SE +/- 105.46, N = 6SE +/- 19.87, N = 61630.121564.221560.181517.031404.921282.30-march=core-avx-i-march=core2-march=corei7-march=nocona-march=corei7-avx-march=core-avx21. (CC) gcc options: -O3

GraphicsMagick

Operation: Blur

OpenBenchmarking.orgIterations Per Minute, More Is BetterGraphicsMagick 1.3.16Operation: Blurcore-avx2core-avx-icorei7-avxcore2corei7nocona306090120150SE +/- 0.88, N = 3SE +/- 0.67, N = 3SE +/- 1.00, N = 3SE +/- 0.00, N = 3SE +/- 1.00, N = 3SE +/- 0.00, N = 3138122122117116115-march=core-avx2-march=core-avx-i-march=corei7-avx-march=core2-march=corei7-march=nocona1. (CC) gcc options: -std=gnu99 -fopenmp -O3 -pthread -ljbig -ljpeg -lXext -lSM -lICE -lX11 -llzma -lbz2 -lz -lm -lpthread

GraphicsMagick

Operation: Resizing

OpenBenchmarking.orgIterations Per Minute, More Is BetterGraphicsMagick 1.3.16Operation: Resizingcore-avx2core-avx-icorei7-avxcorei7core2nocona4080120160200SE +/- 0.33, N = 3SE +/- 0.00, N = 3SE +/- 0.33, N = 3SE +/- 0.00, N = 3SE +/- 0.00, N = 3SE +/- 0.33, N = 3182167166160160157-march=core-avx2-march=core-avx-i-march=corei7-avx-march=corei7-march=core2-march=nocona1. (CC) gcc options: -std=gnu99 -fopenmp -O3 -pthread -ljbig -ljpeg -lXext -lSM -lICE -lX11 -llzma -lbz2 -lz -lm -lpthread

SciMark

Computational Test: Fast Fourier Transform

OpenBenchmarking.orgMflops, More Is BetterSciMark 2.0Computational Test: Fast Fourier Transformcorei7-avxcore2corei7core-avx-inoconacore-avx260120180240300SE +/- 1.22, N = 4SE +/- 0.67, N = 4SE +/- 0.86, N = 4SE +/- 2.13, N = 4SE +/- 2.50, N = 4SE +/- 2.02, N = 4251.86250.93249.11247.35245.07226.57

Smallpt

Global Illumination Renderer; 100 Samples

OpenBenchmarking.orgSeconds, Fewer Is BetterSmallpt 1.0Global Illumination Renderer; 100 Samplescore-avx2noconacore2corei7corei7-avxcore-avx-i612182430SE +/- 0.33, N = 3SE +/- 0.00, N = 3SE +/- 0.00, N = 3SE +/- 0.33, N = 3SE +/- 0.33, N = 3SE +/- 0.33, N = 3242626262626-march=core-avx2-march=nocona-march=core2-march=corei7-march=corei7-avx-march=core-avx-i1. (CXX) g++ options: -fopenmp -O3

TTSIOD 3D Renderer

Phong Rendering With Soft-Shadow Mapping

OpenBenchmarking.orgFPS, More Is BetterTTSIOD 3D Renderer 2.2zPhong Rendering With Soft-Shadow Mappingcorei7noconacore2core-avx2corei7-avxcore-avx-i306090120150SE +/- 0.45, N = 3SE +/- 0.39, N = 3SE +/- 0.76, N = 3SE +/- 0.09, N = 3SE +/- 0.66, N = 3SE +/- 0.36, N = 3123.14122.02121.58119.78117.71116.54-march=corei7-march=nocona-march=core2-march=core-avx2-march=corei7-avx-march=core-avx-i1. (CXX) g++ options: -O3 -fomit-frame-pointer -ffast-math -mtune=native -flto -msse -mrecip -mfpmath=sse -msse2 -mssse3 -lSDL -lstdc++

Timed ImageMagick Compilation

Time To Compile

OpenBenchmarking.orgSeconds, Fewer Is BetterTimed ImageMagick Compilation 6.8.1-10Time To Compilenoconacore2corei7core-avx2corei7-avxcore-avx-i20406080100SE +/- 0.04, N = 3SE +/- 0.06, N = 3SE +/- 0.18, N = 3SE +/- 0.32, N = 3SE +/- 0.10, N = 3SE +/- 0.31, N = 376.9879.0379.6480.6680.9181.06

Timed HMMer Search

Pfam Database Search

OpenBenchmarking.orgSeconds, Fewer Is BetterTimed HMMer Search 2.3.2Pfam Database Searchcore2noconacorei7core-avx-icore-avx2corei7-avx3691215SE +/- 0.01, N = 3SE +/- 0.06, N = 3SE +/- 0.06, N = 3SE +/- 0.04, N = 3SE +/- 0.17, N = 3SE +/- 0.02, N = 310.1410.1610.2210.4510.5510.62-march=core2-march=nocona-march=corei7-march=core-avx-i-march=core-avx2-march=corei7-avx1. (CC) gcc options: -O3 -pthread -lhmmer -lsquid -lm

Botan

Test: Tiger

OpenBenchmarking.orgMbytes/s, More Is BetterBotan 1.10.3Test: Tigercorei7-avxcore-avx-icore2noconacorei7core-avx2100200300400500442.47440.37438.87438.78427.31424.561. (CXX) g++ options: -m64 -ldl -lpthread -lrt -O2

SciMark

Computational Test: Monte Carlo

OpenBenchmarking.orgMflops, More Is BetterSciMark 2.0Computational Test: Monte Carlocorei7-avxcorei7core2core-avx-inoconacore-avx2130260390520650SE +/- 0.44, N = 4SE +/- 0.44, N = 4SE +/- 0.51, N = 4SE +/- 0.44, N = 4SE +/- 0.72, N = 4SE +/- 20.17, N = 8616.65616.65616.21615.76615.33596.16

Apache Benchmark

Static Web Page Serving

OpenBenchmarking.orgRequests Per Second, More Is BetterApache Benchmark 2.4.3Static Web Page Servingcore-avx2core2corei7-avxcore-avx-icorei7nocona5K10K15K20K25KSE +/- 170.85, N = 3SE +/- 229.80, N = 3SE +/- 178.37, N = 3SE +/- 126.25, N = 3SE +/- 193.34, N = 3SE +/- 107.43, N = 325644.1025606.1725580.4425549.8425490.1424888.11-march=core-avx2-march=core2-march=corei7-avx-march=core-avx-i-march=corei7-march=nocona1. (CC) gcc options: -shared -fPIC -pthread -O3

GraphicsMagick

Operation: Local Adaptive Thresholding

OpenBenchmarking.orgIterations Per Minute, More Is BetterGraphicsMagick 1.3.16Operation: Local Adaptive Thresholdingcore-avx2core-avx-icorei7core2corei7-avxnocona306090120150SE +/- 0.00, N = 3SE +/- 0.33, N = 3SE +/- 0.00, N = 3SE +/- 0.33, N = 3SE +/- 0.00, N = 3SE +/- 0.33, N = 3121120120120119118-march=core-avx2-march=core-avx-i-march=corei7-march=core2-march=corei7-avx-march=nocona1. (CC) gcc options: -std=gnu99 -fopenmp -O3 -pthread -ljbig -ljpeg -lXext -lSM -lICE -lX11 -llzma -lbz2 -lz -lm -lpthread

SciMark

Computational Test: Dense LU Matrix Factorization

OpenBenchmarking.orgMflops, More Is BetterSciMark 2.0Computational Test: Dense LU Matrix Factorizationcorei7core2corei7-avxnoconacore-avx-icore-avx2400800120016002000SE +/- 3.12, N = 4SE +/- 5.53, N = 4SE +/- 22.67, N = 4SE +/- 21.90, N = 4SE +/- 23.35, N = 4SE +/- 28.95, N = 41863.191859.971851.101825.731824.281817.03

FFmpeg

H.264 HD To NTSC DV

OpenBenchmarking.orgSeconds, Fewer Is BetterFFmpeg 1.1H.264 HD To NTSC DVcorei7-avxcorei7noconacore-avx-icore-avx2core23691215SE +/- 0.06, N = 3SE +/- 0.01, N = 3SE +/- 0.07, N = 3SE +/- 0.05, N = 3SE +/- 0.12, N = 3SE +/- 0.09, N = 312.8612.9312.9413.0013.0113.16-march=corei7-avx-march=corei7-march=nocona-march=core-avx-i-march=core-avx2-march=core21. (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

x264

H.264 Video Encoding

OpenBenchmarking.orgFrames Per Second, More Is Betterx264 2013-06-08H.264 Video Encodingnoconacore2core-avx-icorei7corei7-avxcore-avx2306090120150SE +/- 0.30, N = 5SE +/- 0.55, N = 5SE +/- 0.50, N = 5SE +/- 0.51, N = 5SE +/- 0.20, N = 5SE +/- 0.90, N = 5156.80156.74156.08156.06155.63155.18-march=nocona-march=core2-march=core-avx-i-march=corei7-march=corei7-avx-march=core-avx21. (CC) gcc options: -ldl -m64 -lm -lpthread -O3 -ffast-math -std=gnu99 -fomit-frame-pointer -fno-tree-vectorize

Timed Linux Kernel Compilation

Time To Compile

OpenBenchmarking.orgSeconds, Fewer Is BetterTimed Linux Kernel Compilation 3.1Time To Compilecore-avx2core2corei7core-avx-inoconacorei7-avx20406080100SE +/- 0.60, N = 3SE +/- 0.54, N = 3SE +/- 0.69, N = 3SE +/- 0.76, N = 3SE +/- 0.59, N = 3SE +/- 0.54, N = 397.2597.6397.7797.8597.8998.10

Botan

Test: CAST-256

OpenBenchmarking.orgMbytes/s, More Is BetterBotan 1.10.3Test: CAST-256core2core-avx-icorei7-avxcore-avx2corei7nocona2040608010095.8095.7995.7795.7695.5495.481. (CXX) g++ options: -m64 -ldl -lpthread -lrt -O2

Botan

Test: AES-256

OpenBenchmarking.orgMbytes/s, More Is BetterBotan 1.10.3Test: AES-256core-avx2core2core-avx-icorei7-avxnoconacorei74080120160200158.43158.35158.31158.19157.97157.961. (CXX) g++ options: -m64 -ldl -lpthread -lrt -O2


Phoronix Test Suite v10.8.5