LLVM Clang 3.4 Compiler Optimization Levels

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

Compare your own system(s) to this result file with the Phoronix Test Suite by running the command: phoronix-test-suite benchmark 1307304-SO-CLANGLEVE44
Jump To Table - Results

View

Do Not Show Noisy Results
Do Not Show Results With Incomplete Data
Do Not Show Results With Little Change/Spread
List Notable Results
Show Result Confidence Charts

Limit displaying results to tests within:

Audio Encoding 2 Tests
Bioinformatics 2 Tests
Timed Code Compilation 2 Tests
C/C++ Compiler Tests 9 Tests
CPU Massive 7 Tests
Creator Workloads 5 Tests
Encoding 2 Tests
HPC - High Performance Computing 2 Tests
Multi-Core 6 Tests
Programmer / Developer System Benchmarks 2 Tests
Renderers 2 Tests
Scientific Computing 2 Tests
Server CPU Tests 3 Tests
Single-Threaded 3 Tests

Statistics

Show Overall Harmonic Mean(s)
Show Overall Geometric Mean
Show Geometric Means Per-Suite/Category
Show Wins / Losses Counts (Pie Chart)
Normalize Results
Remove Outliers Before Calculating Averages

Graph Settings

Force Line Graphs Where Applicable
Convert To Scalar Where Applicable
Prefer Vertical Bar Graphs

Multi-Way Comparison

Condense Multi-Option Tests Into Single Result Graphs

Table

Show Detailed System Result Table

Run Management

Highlight
Result
Hide
Result
Result
Identifier
View Logs
Performance Per
Dollar
Date
Run
  Test
  Duration
-O0
July 29 2013
 
-O1
July 29 2013
 
-O2
July 29 2013
 
-Os
July 29 2013
 
-O3
July 28 2013
 
-Ofast
July 29 2013
 
Invert Hiding All Results Option
 

Only show results where is faster than
Only show results matching title/arguments (delimit multiple options with a comma):
Do not show results matching title/arguments (delimit multiple options with a comma):


LLVM Clang 3.4 Compiler Optimization LevelsOpenBenchmarking.orgPhoronix Test SuiteIntel 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.4svnext41600x900ProcessorMotherboardChipsetMemoryDiskGraphicsAudioNetworkOSKernelDesktopDisplay ServerDisplay DriverOpenGLCompilerFile-SystemScreen ResolutionLLVM Clang 3.4 Compiler Optimization Levels PerformanceSystem Logs- Optimized build; Built Jul 28 2013 (21:43:17); Default target: x86_64-unknown-linux-gnu; Host CPU: corei7 - Scaling Governor: acpi-cpufreq ondemand

-O3-O2-O1-O0-Os-OfastLogarithmic Result OverviewPhoronix Test SuiteHimeno BenchmarkFLAC Audio EncodingTimed HMMer SearchN-QueensLAME MP3 EncodingGraphicsMagickTimed ImageMagick CompilationSmallptC-RayTimed PHP CompilationSciMark

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-O3-O2-O1-O0-Os-Ofast1055.088.86323627.33345.3822.6465.882936675.98805341.97173.571129.569.00323627.31343.1822.7265.3029266103.77805335.51189.721105.3611.26313530.89386.2123.5557.3741066100.11815331.28189.10127.9544.1281089.331083.8867.4723.1477024208.53362218.55189.301102.6811.16303628.68331.7223.0463.3332066104.72795233.44190.141128.508.85313627.10343.6522.0066.552756793.63975342.15188.06OpenBenchmarking.org

Himeno Benchmark

The Himeno benchmark is a linear solver of pressure Poisson using a point-Jacobi method. Learn more via the OpenBenchmarking.org test page.

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

FLAC Audio Encoding

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

GraphicsMagick

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

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

Timed HMMer Search

This test searches through the Pfam database of profile hidden markov models. The search finds the domain structure of Drosophila Sevenless protein. Learn more via the OpenBenchmarking.org test page.

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

N-Queens

This is a test of the OpenMP version of a test that solves the N-queens problem. The board problem size is 18. Learn more via the OpenBenchmarking.org test page.

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

LAME MP3 Encoding

LAME is an MP3 encoder licensed under the LGPL. This test measures the time required to encode a WAV file to MP3 format. Learn more via the OpenBenchmarking.org test page.

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

Timed ImageMagick Compilation

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

Smallpt

Smallpt is a C++ global illumination renderer written in less than 100 lines of code. Global illumination is done via unbiased Monte Carlo path tracing and there is multi-threading support via the OpenMP library. Learn more via the OpenBenchmarking.org test page.

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

GraphicsMagick

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

C-Ray

This is a test of C-Ray, a simple raytracer designed to test the floating-point CPU performance. This test is multi-threaded (16 threads per core), will shoot 8 rays per pixel for anti-aliasing, and will generate a 1600 x 1200 image. Learn more via the OpenBenchmarking.org test page.

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

GraphicsMagick

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

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

Timed PHP Compilation

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

SciMark

This test runs the ANSI C version of SciMark 2.0, which is a benchmark for scientific and numerical computing developed by programmers at the National Institute of Standards and Technology. This test is made up of Fast Foruier Transform, Jacobi Successive Over-relaxation, Monte Carlo, Sparse Matrix Multiply, and dense LU matrix factorization benchmarks. Learn more via the OpenBenchmarking.org test page.

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