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&grw&sor.

Intel Core i7 Ivy Bridge GCC Compiler TuningProcessorMotherboardChipsetMemoryDiskGraphicsAudioMonitorNetworkOSKernelDesktopDisplay ServerDisplay DriverOpenGLCompilerFile-SystemScreen Resolutionmarch=noconamarch=core2march=corei7march=corei7-avxmarch=core-avx-iIntel 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=noconamarch=core2march=corei7march=corei7-avxmarch=core-avx-i13.1616.0910.151620.3724.91132.49414.67136841662048480.37132.952533671.403066.1427036432.8313.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.27OpenBenchmarking.org

LAME MP3 Encoding

WAV To MP3

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

dcraw

RAW To PPM Image Conversion

OpenBenchmarking.orgSeconds, Fewer Is BetterdcrawRAW To PPM Image Conversionmarch=corei7march=core2march=noconamarch=corei7-avxmarch=core-avx-i48121620SE +/- 0.22, N = 3SE +/- 0.17, N = 3SE +/- 0.17, N = 3SE +/- 0.21, N = 3SE +/- 0.21, N = 315.8115.9016.0916.1516.18-march=corei7-march=core2-march=nocona-march=corei7-avx-march=core-avx-i1. (CC) gcc options: -O3 -lm

Timed HMMer Search

Pfam Database Search

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

Himeno Benchmark

Poisson Pressure Solver

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

Timed PHP Compilation

Time To Compile

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

LZMA Compression

256MB File Compression

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

Open FMM Nero2D

Total Time

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

GraphicsMagick

Operation: Blur

OpenBenchmarking.orgIterations Per Minute, More Is BetterGraphicsMagick 1.3.12Operation: Blurmarch=core-avx-imarch=corei7-avxmarch=noconamarch=core2march=corei7306090120150SE +/- 0.33, N = 3SE +/- 0.33, N = 3SE +/- 0.00, N = 3SE +/- 0.33, N = 3SE +/- 0.33, N = 3144144136135134-march=core-avx-i-march=corei7-avx-march=nocona-march=core2-march=corei71. (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=core-avx-imarch=corei7-avxmarch=core2march=noconamarch=corei720406080100SE +/- 0.00, N = 3SE +/- 0.00, N = 3SE +/- 0.00, N = 3SE +/- 0.33, N = 3SE +/- 0.33, N = 39696848483-march=core-avx-i-march=corei7-avx-march=core2-march=nocona-march=corei71. (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=core-avx-imarch=corei7-avxmarch=noconamarch=corei7march=core24080120160200SE +/- 0.00, N = 3SE +/- 0.33, N = 3SE +/- 0.00, N = 3SE +/- 0.33, N = 3SE +/- 0.33, N = 3173173166165165-march=core-avx-i-march=corei7-avx-march=nocona-march=corei7-march=core21. (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=core-avx-imarch=corei7-avxmarch=noconamarch=corei7march=core24080120160200SE +/- 0.00, N = 3SE +/- 0.00, N = 3SE +/- 0.00, N = 3SE +/- 0.33, N = 3SE +/- 0.00, N = 3204204204202202-march=core-avx-i-march=corei7-avx-march=nocona-march=corei7-march=core21. (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=core-avx-imarch=corei7-avxmarch=noconamarch=corei7march=core220406080100SE +/- 0.33, N = 3SE +/- 0.33, N = 3SE +/- 0.00, N = 3SE +/- 0.00, N = 3SE +/- 0.00, N = 38484848383-march=core-avx-i-march=corei7-avx-march=nocona-march=corei7-march=core21. (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=noconamarch=corei7-avxmarch=core-avx-imarch=corei7march=core220406080100SE +/- 6.43, N = 6SE +/- 5.81, N = 6SE +/- 6.72, N = 6SE +/- 7.96, N = 6SE +/- 2.52, N = 680.3786.3189.8290.94101.14-march=nocona-march=corei7-avx-march=core-avx-i-march=corei7-march=core21. (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=core-avx-imarch=corei7-avxmarch=core2march=noconamarch=corei7306090120150SE +/- 0.21, N = 3SE +/- 0.42, N = 3SE +/- 0.02, N = 3SE +/- 0.12, N = 3SE +/- 0.16, N = 3137.13136.93133.03132.95132.44-march=core-avx-i-march=corei7-avx-march=core2-march=nocona-march=corei71. (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=corei7-avxmarch=noconamarch=core2march=corei7march=core-avx-i612182430SE +/- 0.33, N = 3SE +/- 0.00, N = 3SE +/- 0.00, N = 3SE +/- 0.33, N = 3SE +/- 0.00, N = 32425252525-march=corei7-avx-march=nocona-march=core2-march=corei7-march=core-avx-i1. (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=corei7-avxmarch=corei7march=core2march=noconamarch=core-avx-i7K14K21K28K35KSE +/- 227.87, N = 3SE +/- 474.66, N = 3SE +/- 288.23, N = 3SE +/- 143.72, N = 3SE +/- 367.46, N = 334163.6434158.3033993.6233671.4033480.13-march=corei7-avx-march=corei7-march=core2-march=nocona-march=core-avx-i1. (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=noconamarch=core2march=corei7march=corei7-avxmarch=core-avx-i7001400210028003500SE +/- 14.86, N = 3SE +/- 12.53, N = 3SE +/- 6.70, N = 3SE +/- 10.73, N = 3SE +/- 24.76, N = 33066.143063.393060.463038.403028.57-march=nocona-march=core2-march=corei7-march=corei7-avx-march=core-avx-i1. (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=noconamarch=corei7-avxmarch=corei7march=core-avx-imarch=core26M12M18M24M30MSE +/- 10729.97, N = 3SE +/- 6613.46, N = 3SE +/- 1818.89, N = 3SE +/- 3694.38, N = 3SE +/- 16796.57, N = 327036432.8326633781.2326626074.1026620703.2726589940.70-march=nocona-march=corei7-avx-march=corei7-march=core-avx-i-march=core21. (CC) gcc options: -O3


Phoronix Test Suite v10.8.5