LLVM Clang 3.4 Compiler Optimization Levels

Benchmarking LLVM/Clang compiler optimization levels for a future article on phoronix.com.

HTML result view exported from: https://openbenchmarking.org/result/1307304-SO-CLANGLEVE44&gru&rdt.

LLVM Clang 3.4 Compiler Optimization LevelsProcessorMotherboardChipsetMemoryDiskGraphicsAudioNetworkOSKernelDesktopDisplay ServerDisplay DriverOpenGLCompilerFile-SystemScreen Resolution-O3-O2-O1-O0-Os-OfastIntel Core i7 720Q @ 1.60GHz (8 Cores)LENOVO 4318CTOIntel Core DMI4096MB160GB INTEL SSDSA2M160NVIDIA Quadro FX 880M 1024MB (405/324MHz)Conexant CX20585Intel 82577LM Gigabit Connection + Intel Centrino Ultimate-N 6300Ubuntu 13.103.11.0-031100rc2-generic (x86_64)Xfce 4.10X Server 1.14.2nouveau 1.0.83.0 Mesa 9.1.4 Gallium 0.4Clang 3.4 (SVN 187338) + LLVM 3.4svnext41600x900OpenBenchmarking.orgCompiler Details- Optimized build; Built Jul 28 2013 (21:43:17); Default target: x86_64-unknown-linux-gnu; Host CPU: corei7 Processor Details- Scaling Governor: acpi-cpufreq ondemand

LLVM Clang 3.4 Compiler Optimization Levelsgraphics-magick: Blurgraphics-magick: Sharpengraphics-magick: Resizinggraphics-magick: HWB Color Spacegraphics-magick: Local Adaptive Thresholdingscimark2: Fast Fourier Transformhimeno: Poisson Pressure Solverhmmer: Pfam Database Searchbuild-imagemagick: Time To Compilebuild-php: Time To Compilec-ray: Total Timesmallpt: Global Illumination Renderer; 100 Samplesencode-flac: WAV To FLACencode-mp3: WAV To MP3n-queens: Elapsed Time-O3-O2-O1-O0-Os-Ofast5336668032173.571055.0827.3365.8841.9775.982938.8622.64345.385336668032189.721129.5627.3165.3035.51103.772929.0022.72343.185335668131189.101105.3630.8957.3731.28100.1141011.2623.55386.21221024368189.30127.9589.3323.1418.55208.5377044.1267.471083.885236667930190.141102.6828.6863.3333.44104.7232011.1623.04331.725336679731188.061128.5027.1066.5542.1593.632758.8522.00343.65OpenBenchmarking.org

GraphicsMagick

Operation: Blur

OpenBenchmarking.orgIterations Per Minute, More Is BetterGraphicsMagick 1.3.16Operation: Blur-O3-O2-O1-O0-Os-Ofast1224364860SE +/- 0.00, N = 3SE +/- 0.00, N = 3SE +/- 0.00, N = 3SE +/- 0.33, N = 3SE +/- 0.00, N = 3SE +/- 0.00, N = 3535353225253-O3-O2-O1-O0-Os-Ofast1. (CC) gcc options: -march=native -pthread -lXext -lSM -lICE -lX11 -lxml2 -lz -lm -lpthread

GraphicsMagick

Operation: Sharpen

OpenBenchmarking.orgIterations Per Minute, More Is BetterGraphicsMagick 1.3.16Operation: Sharpen-O3-O2-O1-O0-Os-Ofast816243240SE +/- 0.00, N = 3SE +/- 0.00, N = 3SE +/- 0.00, N = 3SE +/- 0.00, N = 3SE +/- 0.00, N = 3SE +/- 0.00, N = 3363635103636-O3-O2-O1-O0-Os-Ofast1. (CC) gcc options: -march=native -pthread -lXext -lSM -lICE -lX11 -lxml2 -lz -lm -lpthread

GraphicsMagick

Operation: Resizing

OpenBenchmarking.orgIterations Per Minute, More Is BetterGraphicsMagick 1.3.16Operation: Resizing-O3-O2-O1-O0-Os-Ofast1530456075SE +/- 0.00, N = 3SE +/- 0.00, N = 3SE +/- 0.00, N = 3SE +/- 0.00, N = 3SE +/- 0.00, N = 3SE +/- 0.33, N = 3666666246667-O3-O2-O1-O0-Os-Ofast1. (CC) gcc options: -march=native -pthread -lXext -lSM -lICE -lX11 -lxml2 -lz -lm -lpthread

GraphicsMagick

Operation: HWB Color Space

OpenBenchmarking.orgIterations Per Minute, More Is BetterGraphicsMagick 1.3.16Operation: HWB Color Space-O3-O2-O1-O0-Os-Ofast20406080100SE +/- 0.00, N = 3SE +/- 0.00, N = 3SE +/- 0.00, N = 3SE +/- 0.33, N = 3SE +/- 0.00, N = 3SE +/- 0.00, N = 3808081367997-O3-O2-O1-O0-Os-Ofast1. (CC) gcc options: -march=native -pthread -lXext -lSM -lICE -lX11 -lxml2 -lz -lm -lpthread

GraphicsMagick

Operation: Local Adaptive Thresholding

OpenBenchmarking.orgIterations Per Minute, More Is BetterGraphicsMagick 1.3.16Operation: Local Adaptive Thresholding-O3-O2-O1-O0-Os-Ofast714212835SE +/- 0.00, N = 3SE +/- 0.00, N = 3SE +/- 0.00, N = 3SE +/- 0.00, N = 3SE +/- 0.00, N = 3SE +/- 0.00, N = 332323183031-O3-O2-O1-O0-Os-Ofast1. (CC) gcc options: -march=native -pthread -lXext -lSM -lICE -lX11 -lxml2 -lz -lm -lpthread

SciMark

Computational Test: Fast Fourier Transform

OpenBenchmarking.orgMflops, More Is BetterSciMark 2.0Computational Test: Fast Fourier Transform-O3-O2-O1-O0-Os-Ofast4080120160200SE +/- 0.61, N = 4SE +/- 0.24, N = 4SE +/- 0.52, N = 4SE +/- 0.00, N = 4SE +/- 0.00, N = 4SE +/- 0.41, N = 4173.57189.72189.10189.30190.14188.06-O3-O2-O1-O0-Os-Ofast1. (CXX) g++ options: -march=native

Himeno Benchmark

Poisson Pressure Solver

OpenBenchmarking.orgMFLOPS, More Is BetterHimeno Benchmark 3.0Poisson Pressure Solver-O3-O2-O1-O0-Os-Ofast2004006008001000SE +/- 5.78, N = 3SE +/- 0.39, N = 3SE +/- 0.14, N = 3SE +/- 0.03, N = 3SE +/- 0.03, N = 3SE +/- 0.36, N = 31055.081129.561105.36127.951102.681128.50-O2-O1-O0-Os-Ofast1. (CC) gcc options: -O3 -march=native

Timed HMMer Search

Pfam Database Search

OpenBenchmarking.orgSeconds, Fewer Is BetterTimed HMMer Search 2.3.2Pfam Database Search-O3-O2-O1-O0-Os-Ofast20406080100SE +/- 0.02, N = 3SE +/- 0.05, N = 3SE +/- 0.03, N = 3SE +/- 0.46, N = 3SE +/- 0.06, N = 3SE +/- 0.04, N = 327.3327.3130.8989.3328.6827.10-O3-O2-O1-O0-Os-Ofast1. (CC) gcc options: -march=native -pthread -lhmmer -lsquid -lm

Timed ImageMagick Compilation

Time To Compile

OpenBenchmarking.orgSeconds, Fewer Is BetterTimed ImageMagick Compilation 6.8.1-10Time To Compile-O3-O2-O1-O0-Os-Ofast1530456075SE +/- 0.18, N = 3SE +/- 0.22, N = 3SE +/- 0.11, N = 3SE +/- 0.03, N = 3SE +/- 0.14, N = 3SE +/- 0.12, N = 365.8865.3057.3723.1463.3366.55

Timed PHP Compilation

Time To Compile

OpenBenchmarking.orgSeconds, Fewer Is BetterTimed PHP Compilation 5.2.9Time To Compile-O3-O2-O1-O0-Os-Ofast1020304050SE +/- 0.10, N = 3SE +/- 0.07, N = 3SE +/- 0.02, N = 3SE +/- 0.01, N = 3SE +/- 0.01, N = 3SE +/- 0.03, N = 341.9735.5131.2818.5533.4442.15-O3-O2-O1-O0-Os-Ofast1. (CC) gcc options: -march=native -pedantic -ldl -lz -lm

C-Ray

Total Time

OpenBenchmarking.orgSeconds, Fewer Is BetterC-Ray 1.1Total Time-O3-O2-O1-O0-Os-Ofast50100150200250SE +/- 0.04, N = 3SE +/- 0.02, N = 3SE +/- 0.01, N = 3SE +/- 0.07, N = 3SE +/- 0.04, N = 3SE +/- 0.03, N = 375.98103.77100.11208.53104.7293.63-O2-O1-O0-Os-Ofast1. (CC) gcc options: -lm -lpthread -O3 -march=native

Smallpt

Global Illumination Renderer; 100 Samples

OpenBenchmarking.orgSeconds, Fewer Is BetterSmallpt 1.0Global Illumination Renderer; 100 Samples-O3-O2-O1-O0-Os-Ofast170340510680850SE +/- 0.58, N = 3SE +/- 0.88, N = 3SE +/- 0.33, N = 3SE +/- 0.58, N = 3SE +/- 1.67, N = 3SE +/- 0.33, N = 3293292410770320275-O3-O2-O1-O0-Os-Ofast1. (CXX) g++ options: -fopenmp -march=native

FLAC Audio Encoding

WAV To FLAC

OpenBenchmarking.orgSeconds, Fewer Is BetterFLAC Audio Encoding 1.3.0WAV To FLAC-O3-O2-O1-O0-Os-Ofast1020304050SE +/- 0.01, N = 5SE +/- 0.01, N = 5SE +/- 0.05, N = 5SE +/- 0.02, N = 5SE +/- 0.01, N = 5SE +/- 0.01, N = 58.869.0011.2644.1211.168.85-O3-O2-O1-O0-Os-Ofast1. (CXX) g++ options: -march=native -fvisibility=hidden -logg -lm

LAME MP3 Encoding

WAV To MP3

OpenBenchmarking.orgSeconds, Fewer Is BetterLAME MP3 Encoding 3.99.3WAV To MP3-O3-O2-O1-O0-Os-Ofast1530456075SE +/- 0.02, N = 5SE +/- 0.01, N = 5SE +/- 0.01, N = 5SE +/- 0.02, N = 5SE +/- 0.01, N = 5SE +/- 0.01, N = 522.6422.7223.5567.4723.0422.00-O3-O2-O1-O0-Os-Ofast1. (CC) gcc options: -pipe -march=native -lm

N-Queens

Elapsed Time

OpenBenchmarking.orgSeconds, Fewer Is BetterN-Queens 1.0Elapsed Time-O3-O2-O1-O0-Os-Ofast2004006008001000SE +/- 0.89, N = 3SE +/- 0.03, N = 3SE +/- 0.00, N = 3SE +/- 0.13, N = 3SE +/- 0.13, N = 3SE +/- 0.04, N = 3345.38343.18386.211083.88331.72343.65-O2-O1-O0-Os-Ofast1. (CC) gcc options: -static -fopenmp -O3 -march=native


Phoronix Test Suite v10.8.4