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&grs&sro.

LLVM Clang 3.4 Compiler Optimization LevelsProcessorMotherboardChipsetMemoryDiskGraphicsAudioNetworkOSKernelDesktopDisplay ServerDisplay DriverOpenGLCompilerFile-SystemScreen Resolution-O0-O1-O2-Os-O3-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 Levelshimeno: Poisson Pressure Solverencode-flac: WAV To FLACgraphics-magick: Local Adaptive Thresholdinggraphics-magick: Sharpenhmmer: Pfam Database Searchn-queens: Elapsed Timeencode-mp3: WAV To MP3build-imagemagick: Time To Compilesmallpt: Global Illumination Renderer; 100 Samplesgraphics-magick: Resizingc-ray: Total Timegraphics-magick: HWB Color Spacegraphics-magick: Blurbuild-php: Time To Compilescimark2: Fast Fourier Transform-O0-O1-O2-Os-O3-Ofast127.9544.1281089.331083.8867.4723.1477024208.53362218.55189.301105.3611.26313530.89386.2123.5557.3741066100.11815331.28189.101129.569.00323627.31343.1822.7265.3029266103.77805335.51189.721102.6811.16303628.68331.7223.0463.3332066104.72795233.44190.141055.088.86323627.33345.3822.6465.882936675.98805341.97173.571128.508.85313627.10343.6522.0066.552756793.63975342.15188.06OpenBenchmarking.org

Himeno Benchmark

Poisson Pressure Solver

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

FLAC Audio Encoding

WAV To FLAC

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

GraphicsMagick

Operation: Local Adaptive Thresholding

OpenBenchmarking.orgIterations Per Minute, More Is BetterGraphicsMagick 1.3.16Operation: Local Adaptive Thresholding-O0-O1-O2-O3-Ofast-Os714212835SE +/- 0.00, N = 3SE +/- 0.00, N = 3SE +/- 0.00, N = 3SE +/- 0.00, N = 3SE +/- 0.00, N = 3SE +/- 0.00, N = 383132323130-O0-O1-O2-O3-Ofast-Os1. (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-O0-O1-O2-O3-Ofast-Os816243240SE +/- 0.00, N = 3SE +/- 0.00, N = 3SE +/- 0.00, N = 3SE +/- 0.00, N = 3SE +/- 0.00, N = 3SE +/- 0.00, N = 3103536363636-O0-O1-O2-O3-Ofast-Os1. (CC) gcc options: -march=native -pthread -lXext -lSM -lICE -lX11 -lxml2 -lz -lm -lpthread

Timed HMMer Search

Pfam Database Search

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

N-Queens

Elapsed Time

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

LAME MP3 Encoding

WAV To MP3

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

Timed ImageMagick Compilation

Time To Compile

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

Smallpt

Global Illumination Renderer; 100 Samples

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

GraphicsMagick

Operation: Resizing

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

C-Ray

Total Time

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

GraphicsMagick

Operation: HWB Color Space

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

GraphicsMagick

Operation: Blur

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

Timed PHP Compilation

Time To Compile

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

SciMark

Computational Test: Fast Fourier Transform

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


Phoronix Test Suite v10.8.5