OpenMP Compiler GCC Clang

A Compiler comparison by Michael Larabel looking at the OpenMP LLVM Clang performance against GCC. Using Intel's Clang LLVM Compiler-RT and Intel OpenMP Runtime Library code on Ubuntu Linux. Benchmarks for a future article on Phoronix.com. Also a few other non-OMP benchmarks in this result file...

HTML result view exported from: https://openbenchmarking.org/result/1405255-PTS-OPENMPCO89&grt&rdt.

OpenMP Compiler GCC ClangProcessorMotherboardChipsetMemoryDiskGraphicsAudioNetworkOSKernelDesktopDisplay ServerDisplay DriverOpenGLCompilerFile-SystemScreen ResolutionGCC 4.9.0Clang 3.4 Intel OpenMPClang 3.4 StockIntel Core i7-3517U @ 1.90GHz (4 Cores)ASUS UX32VDA v1.0Intel 3rd Gen Core DRAM4096MB2 x 128GB SanDisk SD5SF212Intel HD 4000 512MB (1150MHz)Realtek ALC269VBIntel Centrino Advanced-N 6235Ubuntu 14.043.13.0-24-generic (x86_64)Unity 7.2.0X Server 1.15.1intel 2.99.9103.3 Mesa 10.1.0GCC 4.9.0ext41920x1080Clang 3.4 + LLVM 3.4Clang 3.4-1ubuntu3OpenBenchmarking.orgCompiler Details- GCC 4.9.0: --build=x86_64-linux-gnu --disable-browser-plugin --disable-libmudflap --disable-werror --enable-checking=release --enable-clocale=gnu --enable-gnu-unique-object --enable-gtk-cairo --enable-java-awt=gtk --enable-java-home --enable-languages=c,c++,java,go,fortran,objc,obj-c++ --enable-libstdcxx-debug --enable-libstdcxx-time=yes --enable-multiarch --enable-multilib --enable-nls --enable-objc-gc --enable-plugin --enable-shared --enable-threads=posix --host=x86_64-linux-gnu --target=x86_64-linux-gnu --with-abi=m64 --with-arch-32=i686 --with-arch-directory=amd64 --with-multilib-list=m32,m64,mx32 --with-tune=generic -v - Clang 3.4 Intel OpenMP: Optimized build; Built May 25 2014 (09:24:01); Default target: x86_64-unknown-linux-gnu; Host CPU: core-avx-i Processor Details- Scaling Governor: acpi-cpufreq ondemand

OpenMP Compiler GCC Clangc-ray: Total Timeclomp: Static OMP Speedupencode-flac: WAV To FLACgraphics-magick: Blurgraphics-magick: Sharpengraphics-magick: Resizinggraphics-magick: HWB Color Spacegraphics-magick: Local Adaptive Thresholdingencode-mp3: WAV To MP3smallpt: Global Illumination Renderer; 100 Samplesbuild-apache: Time To Compilettsiod-renderer: Phong Rendering With Soft-Shadow MappingGCC 4.9.0Clang 3.4 Intel OpenMPClang 3.4 Stock74.002.696.02100641141347015.9323960.0864.3583.916.6688591136815.0623841.9464.1883.966.656442871106815.0648443.35OpenBenchmarking.org

C-Ray

Total Time

OpenBenchmarking.orgSeconds, Fewer Is BetterC-Ray 1.1Total TimeGCC 4.9.0Clang 3.4 Intel OpenMPClang 3.4 Stock20406080100SE +/- 0.01, N = 3SE +/- 0.03, N = 3SE +/- 0.03, N = 374.0083.9183.961. (CC) gcc options: -lm -lpthread -O3

CLOMP

Static OMP Speedup

OpenBenchmarking.orgSpeedup, More Is BetterCLOMP 3.3Static OMP SpeedupGCC 4.9.00.60531.21061.81592.42123.0265SE +/- 0.00, N = 52.691. (CC) gcc options: --openmp -O3 -lm

FLAC Audio Encoding

WAV To FLAC

OpenBenchmarking.orgSeconds, Fewer Is BetterFLAC Audio Encoding 1.3.0WAV To FLACGCC 4.9.0Clang 3.4 Intel OpenMPClang 3.4 Stock246810SE +/- 0.00, N = 5SE +/- 0.00, N = 5SE +/- 0.00, N = 56.026.666.651. (CXX) g++ options: -O2 -fvisibility=hidden -logg -lm

GraphicsMagick

Operation: Blur

OpenBenchmarking.orgIterations Per Minute, More Is BetterGraphicsMagick 1.3.19Operation: BlurGCC 4.9.0Clang 3.4 Intel OpenMPClang 3.4 Stock20406080100SE +/- 0.00, N = 3SE +/- 0.00, N = 3SE +/- 0.00, N = 31008864-std=gnu99 -fopenmp -lgomp-fopenmp -lgomp1. (CC) gcc options: -O2 -pthread -ljbig -lwebp -ljpeg -lXext -lSM -lICE -lX11 -llzma -lxml2 -lz -lm -lpthread

GraphicsMagick

Operation: Sharpen

OpenBenchmarking.orgIterations Per Minute, More Is BetterGraphicsMagick 1.3.19Operation: SharpenGCC 4.9.0Clang 3.4 Intel OpenMPClang 3.4 Stock1428425670SE +/- 0.33, N = 3SE +/- 0.00, N = 3SE +/- 0.00, N = 3645942-std=gnu99 -fopenmp -lgomp-fopenmp -lgomp1. (CC) gcc options: -O2 -pthread -ljbig -lwebp -ljpeg -lXext -lSM -lICE -lX11 -llzma -lxml2 -lz -lm -lpthread

GraphicsMagick

Operation: Resizing

OpenBenchmarking.orgIterations Per Minute, More Is BetterGraphicsMagick 1.3.19Operation: ResizingGCC 4.9.0Clang 3.4 Stock306090120150SE +/- 0.00, N = 3SE +/- 0.00, N = 311487-std=gnu99 -fopenmp -lgomp1. (CC) gcc options: -O2 -pthread -ljbig -lwebp -ljpeg -lXext -lSM -lICE -lX11 -llzma -lxml2 -lz -lm -lpthread

GraphicsMagick

Operation: HWB Color Space

OpenBenchmarking.orgIterations Per Minute, More Is BetterGraphicsMagick 1.3.19Operation: HWB Color SpaceGCC 4.9.0Clang 3.4 Intel OpenMPClang 3.4 Stock306090120150SE +/- 0.33, N = 3SE +/- 0.00, N = 3SE +/- 0.00, N = 3134113110-std=gnu99 -fopenmp -lgomp-fopenmp -lgomp1. (CC) gcc options: -O2 -pthread -ljbig -lwebp -ljpeg -lXext -lSM -lICE -lX11 -llzma -lxml2 -lz -lm -lpthread

GraphicsMagick

Operation: Local Adaptive Thresholding

OpenBenchmarking.orgIterations Per Minute, More Is BetterGraphicsMagick 1.3.19Operation: Local Adaptive ThresholdingGCC 4.9.0Clang 3.4 Intel OpenMPClang 3.4 Stock1632486480SE +/- 0.00, N = 3SE +/- 0.00, N = 3SE +/- 0.00, N = 3706868-std=gnu99 -fopenmp -lgomp-fopenmp -lgomp1. (CC) gcc options: -O2 -pthread -ljbig -lwebp -ljpeg -lXext -lSM -lICE -lX11 -llzma -lxml2 -lz -lm -lpthread

LAME MP3 Encoding

WAV To MP3

OpenBenchmarking.orgSeconds, Fewer Is BetterLAME MP3 Encoding 3.99.3WAV To MP3GCC 4.9.0Clang 3.4 Intel OpenMPClang 3.4 Stock48121620SE +/- 0.01, N = 5SE +/- 0.01, N = 5SE +/- 0.01, N = 515.9315.0615.061. (CC) gcc options: -O3 -ffast-math -funroll-loops -pipe -lncurses -lm

Smallpt

Global Illumination Renderer; 100 Samples

OpenBenchmarking.orgSeconds, Fewer Is BetterSmallpt 1.0Global Illumination Renderer; 100 SamplesGCC 4.9.0Clang 3.4 Intel OpenMPClang 3.4 Stock100200300400500SE +/- 0.00, N = 3SE +/- 0.00, N = 3SE +/- 0.33, N = 32392384841. (CXX) g++ options: -fopenmp

Timed Apache Compilation

Time To Compile

OpenBenchmarking.orgSeconds, Fewer Is BetterTimed Apache Compilation 2.4.7Time To CompileGCC 4.9.0Clang 3.4 Intel OpenMPClang 3.4 Stock1326395265SE +/- 0.11, N = 3SE +/- 0.05, N = 3SE +/- 0.07, N = 360.0841.9443.35

TTSIOD 3D Renderer

Phong Rendering With Soft-Shadow Mapping

OpenBenchmarking.orgFPS, More Is BetterTTSIOD 3D Renderer 2.2zPhong Rendering With Soft-Shadow MappingGCC 4.9.0Clang 3.4 Intel OpenMP1428425670SE +/- 0.04, N = 3SE +/- 0.10, N = 364.3564.181. (CXX) g++ options: -O3 -fomit-frame-pointer -ffast-math -mtune=native -flto -msse -mrecip -mfpmath=sse -msse2 -mssse3 -lSDL -lstdc++


Phoronix Test Suite v10.8.5