Intel Core i7 Ivy Bridge GCC Compiler Tuning

GCC 4.7.0 compiler tuning with Intel Ivy Bridge looking at the performance of various compiler flags. Testing for a future article on Phoronix.com. Tested options were march=nocona, march=core2, march=corei7, march=corei7-avx, and march=core-avx-i. The -O3 was also set for the CFLAG/CXXFLAGS for all runs.

HTML result view exported from: https://openbenchmarking.org/result/1206055-SU-INTELCORE01&rdt&grw.

Intel Core i7 Ivy Bridge GCC Compiler TuningProcessorMotherboardChipsetMemoryDiskGraphicsAudioMonitorNetworkOSKernelDesktopDisplay ServerDisplay DriverOpenGLCompilerFile-SystemScreen Resolutionmarch=core2march=corei7march=corei7-avxmarch=core-avx-imarch=noconaIntel Core i7-3770K @ 3.50GHz (8 Cores)ECS Z77H2-A2X v1.0Intel Ivy Bridge DRAM15360MB240GB OCZ VERTEX3Intel Ivy BridgeRealtek ALC892DELL P2210HRealtek RTL8111/8168BUbuntu 12.043.4.0-999-generic (x86_64)Unity 5.10.0X Server 1.11.3intel 2.18.02.1 Mesa 8.1-devel (git-137c5ec)GCC 4.7.0ext41920x1080OpenBenchmarking.orgCompiler Details- --disable-multilib --enable-checking=release --enable-languages=c,c++,fortran --enable-ltoProcessor Details- Scaling Governor: ondemandSystem Details- Compiz was running on this system.

Intel Core i7 Ivy Bridge GCC Compiler Tuningencode-mp3: WAV To MP3dcraw: RAW To PPM Image Conversionhmmer: Pfam Database Searchhimeno: Poisson Pressure Solverbuild-php: Time To Compilecompress-lzma: 256MB File Compressionnero2d: Total Timegraphics-magick: Blurgraphics-magick: Sharpengraphics-magick: Resizinggraphics-magick: HWB Color Spacegraphics-magick: Local Adaptive Thresholdingc-ray: Total Timettsiod-renderer: Phong Rendering With Soft-Shadow Mappingsmallpt: Global Illumination Renderer; 100 Samplesapache: Static Web Page Servingpgbench: TPC-B Transactions Per Secondbyte: Dhrystone 2march=core2march=corei7march=corei7-avxmarch=core-avx-imarch=nocona13.5015.9010.121646.2226.55132.60410.681358416520283101.14133.032533993.623063.3926589940.7013.3515.8110.181636.5426.64132.47408.94134831652028390.94132.442534158.303060.4626626074.1013.2216.1510.141655.2627.09132.66409.41144961732048486.31136.932434163.643038.4026633781.2313.2516.1810.071646.1027.05132.32408.70144961732048489.82137.132533480.133028.5726620703.2713.1616.0910.151620.3724.91132.49414.67136841662048480.37132.952533671.403066.1427036432.83OpenBenchmarking.org

LAME MP3 Encoding

WAV To MP3

OpenBenchmarking.orgSeconds, Fewer Is BetterLAME MP3 Encoding 3.99.3WAV To MP3march=core2march=corei7march=corei7-avxmarch=core-avx-imarch=nocona3691215SE +/- 0.02, N = 5SE +/- 0.01, N = 5SE +/- 0.02, N = 5SE +/- 0.03, N = 5SE +/- 0.02, N = 513.5013.3513.2213.2513.16

dcraw

RAW To PPM Image Conversion

OpenBenchmarking.orgSeconds, Fewer Is BetterdcrawRAW To PPM Image Conversionmarch=core2march=corei7march=corei7-avxmarch=core-avx-imarch=nocona48121620SE +/- 0.17, N = 3SE +/- 0.22, N = 3SE +/- 0.21, N = 3SE +/- 0.21, N = 3SE +/- 0.17, N = 315.9015.8116.1516.1816.09-march=core2-march=corei7-march=corei7-avx-march=core-avx-i-march=nocona1. (CC) gcc options: -O3 -lm

Timed HMMer Search

Pfam Database Search

OpenBenchmarking.orgSeconds, Fewer Is BetterTimed HMMer Search 2.3.2Pfam Database Searchmarch=core2march=corei7march=corei7-avxmarch=core-avx-imarch=nocona3691215SE +/- 0.02, N = 3SE +/- 0.17, N = 3SE +/- 0.14, N = 3SE +/- 0.03, N = 3SE +/- 0.03, N = 310.1210.1810.1410.0710.15-march=core2-march=corei7-march=corei7-avx-march=core-avx-i-march=nocona1. (CC) gcc options: -O3 -pthread -lhmmer -lsquid -lm

Himeno Benchmark

Poisson Pressure Solver

OpenBenchmarking.orgMFLOPS, More Is BetterHimeno Benchmark 3.0Poisson Pressure Solvermarch=core2march=corei7march=corei7-avxmarch=core-avx-imarch=nocona400800120016002000SE +/- 12.22, N = 3SE +/- 18.31, N = 3SE +/- 4.68, N = 3SE +/- 4.78, N = 3SE +/- 6.23, N = 31646.221636.541655.261646.101620.37-march=core2-march=corei7-march=corei7-avx-march=core-avx-i-march=nocona1. (CC) gcc options: -O3

Timed PHP Compilation

Time To Compile

OpenBenchmarking.orgSeconds, Fewer Is BetterTimed PHP Compilation 5.2.9Time To Compilemarch=core2march=corei7march=corei7-avxmarch=core-avx-imarch=nocona612182430SE +/- 0.06, N = 3SE +/- 0.02, N = 3SE +/- 0.07, N = 3SE +/- 0.07, N = 3SE +/- 0.01, N = 326.5526.6427.0927.0524.91-march=core2-march=corei7-march=corei7-avx-march=core-avx-i-march=nocona1. (CC) gcc options: -O3 -pedantic -ldl -lz -lm

LZMA Compression

256MB File Compression

OpenBenchmarking.orgSeconds, Fewer Is BetterLZMA Compression256MB File Compressionmarch=core2march=corei7march=corei7-avxmarch=core-avx-imarch=nocona306090120150SE +/- 0.19, N = 3SE +/- 0.17, N = 3SE +/- 0.13, N = 3SE +/- 0.21, N = 3SE +/- 0.37, N = 3132.60132.47132.66132.32132.49-march=core2-march=corei7-march=corei7-avx-march=core-avx-i-march=nocona1. (CC) gcc options: -O3

Open FMM Nero2D

Total Time

OpenBenchmarking.orgSeconds, Fewer Is BetterOpen FMM Nero2D 2.0.2Total Timemarch=core2march=corei7march=corei7-avxmarch=core-avx-imarch=nocona90180270360450410.68408.94409.41408.70414.67-march=core2-march=corei7-march=corei7-avx-march=core-avx-i-march=nocona1. (CXX) g++ options: -O3 -lfftw3 -llapack -lblas -lm

GraphicsMagick

Operation: Blur

OpenBenchmarking.orgIterations Per Minute, More Is BetterGraphicsMagick 1.3.12Operation: Blurmarch=core2march=corei7march=corei7-avxmarch=core-avx-imarch=nocona306090120150SE +/- 0.33, N = 3SE +/- 0.33, N = 3SE +/- 0.33, N = 3SE +/- 0.33, N = 3SE +/- 0.00, N = 3135134144144136-march=core2-march=corei7-march=corei7-avx-march=core-avx-i-march=nocona1. (CC) gcc options: -std=gnu99 -fopenmp -O3 -pthread -ltiff -lfreetype -lXext -lSM -lICE -lX11 -lz -lm -lrt -lpthread

GraphicsMagick

Operation: Sharpen

OpenBenchmarking.orgIterations Per Minute, More Is BetterGraphicsMagick 1.3.12Operation: Sharpenmarch=core2march=corei7march=corei7-avxmarch=core-avx-imarch=nocona20406080100SE +/- 0.00, N = 3SE +/- 0.33, N = 3SE +/- 0.00, N = 3SE +/- 0.00, N = 3SE +/- 0.33, N = 38483969684-march=core2-march=corei7-march=corei7-avx-march=core-avx-i-march=nocona1. (CC) gcc options: -std=gnu99 -fopenmp -O3 -pthread -ltiff -lfreetype -lXext -lSM -lICE -lX11 -lz -lm -lrt -lpthread

GraphicsMagick

Operation: Resizing

OpenBenchmarking.orgIterations Per Minute, More Is BetterGraphicsMagick 1.3.12Operation: Resizingmarch=core2march=corei7march=corei7-avxmarch=core-avx-imarch=nocona4080120160200SE +/- 0.33, N = 3SE +/- 0.33, N = 3SE +/- 0.33, N = 3SE +/- 0.00, N = 3SE +/- 0.00, N = 3165165173173166-march=core2-march=corei7-march=corei7-avx-march=core-avx-i-march=nocona1. (CC) gcc options: -std=gnu99 -fopenmp -O3 -pthread -ltiff -lfreetype -lXext -lSM -lICE -lX11 -lz -lm -lrt -lpthread

GraphicsMagick

Operation: HWB Color Space

OpenBenchmarking.orgIterations Per Minute, More Is BetterGraphicsMagick 1.3.12Operation: HWB Color Spacemarch=core2march=corei7march=corei7-avxmarch=core-avx-imarch=nocona4080120160200SE +/- 0.00, N = 3SE +/- 0.33, N = 3SE +/- 0.00, N = 3SE +/- 0.00, N = 3SE +/- 0.00, N = 3202202204204204-march=core2-march=corei7-march=corei7-avx-march=core-avx-i-march=nocona1. (CC) gcc options: -std=gnu99 -fopenmp -O3 -pthread -ltiff -lfreetype -lXext -lSM -lICE -lX11 -lz -lm -lrt -lpthread

GraphicsMagick

Operation: Local Adaptive Thresholding

OpenBenchmarking.orgIterations Per Minute, More Is BetterGraphicsMagick 1.3.12Operation: Local Adaptive Thresholdingmarch=core2march=corei7march=corei7-avxmarch=core-avx-imarch=nocona20406080100SE +/- 0.00, N = 3SE +/- 0.00, N = 3SE +/- 0.33, N = 3SE +/- 0.33, N = 3SE +/- 0.00, N = 38383848484-march=core2-march=corei7-march=corei7-avx-march=core-avx-i-march=nocona1. (CC) gcc options: -std=gnu99 -fopenmp -O3 -pthread -ltiff -lfreetype -lXext -lSM -lICE -lX11 -lz -lm -lrt -lpthread

C-Ray

Total Time

OpenBenchmarking.orgSeconds, Fewer Is BetterC-Ray 1.1Total Timemarch=core2march=corei7march=corei7-avxmarch=core-avx-imarch=nocona20406080100SE +/- 2.52, N = 6SE +/- 7.96, N = 6SE +/- 5.81, N = 6SE +/- 6.72, N = 6SE +/- 6.43, N = 6101.1490.9486.3189.8280.37-march=core2-march=corei7-march=corei7-avx-march=core-avx-i-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.2wPhong Rendering With Soft-Shadow Mappingmarch=core2march=corei7march=corei7-avxmarch=core-avx-imarch=nocona306090120150SE +/- 0.02, N = 3SE +/- 0.16, N = 3SE +/- 0.42, N = 3SE +/- 0.21, N = 3SE +/- 0.12, N = 3133.03132.44136.93137.13132.95-march=core2-march=corei7-march=corei7-avx-march=core-avx-i-march=nocona1. (CXX) g++ options: -O3 -fomit-frame-pointer -ffast-math -mtune=native -flto -msse -mrecip -mfpmath=sse -msse2 -mssse3 -lSDL -lstdc++

Smallpt

Global Illumination Renderer; 100 Samples

OpenBenchmarking.orgSeconds, Fewer Is BetterSmallpt 1.0Global Illumination Renderer; 100 Samplesmarch=core2march=corei7march=corei7-avxmarch=core-avx-imarch=nocona612182430SE +/- 0.00, N = 3SE +/- 0.33, N = 3SE +/- 0.33, N = 3SE +/- 0.00, N = 3SE +/- 0.00, N = 32525242525-march=core2-march=corei7-march=corei7-avx-march=core-avx-i-march=nocona1. (CXX) g++ options: -fopenmp -O3

Apache Benchmark

Static Web Page Serving

OpenBenchmarking.orgRequests Per Second, More Is BetterApache Benchmark 2.2.21Static Web Page Servingmarch=core2march=corei7march=corei7-avxmarch=core-avx-imarch=nocona7K14K21K28K35KSE +/- 288.23, N = 3SE +/- 474.66, N = 3SE +/- 227.87, N = 3SE +/- 367.46, N = 3SE +/- 143.72, N = 333993.6234158.3034163.6433480.1333671.40-march=core2-march=corei7-march=corei7-avx-march=core-avx-i-march=nocona1. (CC) gcc options: -pthread -O3 -lm -lexpat -lrt -lcrypt -lpthread -ldl

PostgreSQL pgbench

TPC-B Transactions Per Second

OpenBenchmarking.orgTPS, More Is BetterPostgreSQL pgbench 8.4.11TPC-B Transactions Per Secondmarch=core2march=corei7march=corei7-avxmarch=core-avx-imarch=nocona7001400210028003500SE +/- 12.53, N = 3SE +/- 6.70, N = 3SE +/- 10.73, N = 3SE +/- 24.76, N = 3SE +/- 14.86, N = 33063.393060.463038.403028.573066.14-march=core2-march=corei7-march=corei7-avx-march=core-avx-i-march=nocona1. (CC) gcc options: -O3 -fno-strict-aliasing -fwrapv -lpgport -lpq -lcrypt -ldl -lm

BYTE Unix Benchmark

Computational Test: Dhrystone 2

OpenBenchmarking.orgLPS, More Is BetterBYTE Unix Benchmark 3.6Computational Test: Dhrystone 2march=core2march=corei7march=corei7-avxmarch=core-avx-imarch=nocona6M12M18M24M30MSE +/- 16796.57, N = 3SE +/- 1818.89, N = 3SE +/- 6613.46, N = 3SE +/- 3694.38, N = 3SE +/- 10729.97, N = 326589940.7026626074.1026633781.2326620703.2727036432.83-march=core2-march=corei7-march=corei7-avx-march=core-avx-i-march=nocona1. (CC) gcc options: -O3


Phoronix Test Suite v10.8.5