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&sro .
OpenMP Compiler GCC Clang Processor Motherboard Chipset Memory Disk Graphics Audio Network OS Kernel Desktop Display Server Display Driver OpenGL Compiler File-System Screen Resolution GCC 4.9.0 Clang 3.4 Stock Clang 3.4 Intel OpenMP Intel Core i7-3517U @ 1.90GHz (4 Cores) ASUS UX32VDA v1.0 Intel 3rd Gen Core DRAM 4096MB 2 x 128GB SanDisk SD5SF212 Intel HD 4000 512MB (1150MHz) Realtek ALC269VB Intel Centrino Advanced-N 6235 Ubuntu 14.04 3.13.0-24-generic (x86_64) Unity 7.2.0 X Server 1.15.1 intel 2.99.910 3.3 Mesa 10.1.0 GCC 4.9.0 ext4 1920x1080 Clang 3.4-1ubuntu3 Clang 3.4 + LLVM 3.4 OpenBenchmarking.org Compiler 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 Clang c-ray: Total Time clomp: Static OMP Speedup encode-flac: WAV To FLAC graphics-magick: Blur graphics-magick: Sharpen graphics-magick: Resizing graphics-magick: HWB Color Space graphics-magick: Local Adaptive Thresholding encode-mp3: WAV To MP3 smallpt: Global Illumination Renderer; 100 Samples build-apache: Time To Compile ttsiod-renderer: Phong Rendering With Soft-Shadow Mapping GCC 4.9.0 Clang 3.4 Stock Clang 3.4 Intel OpenMP 74.00 2.69 6.02 100 64 114 134 70 15.93 239 60.08 64.35 83.96 6.65 64 42 87 110 68 15.06 484 43.35 83.91 6.66 88 59 113 68 15.06 238 41.94 64.18 OpenBenchmarking.org
C-Ray Total Time OpenBenchmarking.org Seconds, Fewer Is Better C-Ray 1.1 Total Time Clang 3.4 Intel OpenMP Clang 3.4 Stock GCC 4.9.0 20 40 60 80 100 SE +/- 0.03, N = 3 SE +/- 0.03, N = 3 SE +/- 0.01, N = 3 83.91 83.96 74.00 1. (CC) gcc options: -lm -lpthread -O3
CLOMP Static OMP Speedup OpenBenchmarking.org Speedup, More Is Better CLOMP 3.3 Static OMP Speedup GCC 4.9.0 0.6053 1.2106 1.8159 2.4212 3.0265 SE +/- 0.00, N = 5 2.69 1. (CC) gcc options: --openmp -O3 -lm
FLAC Audio Encoding WAV To FLAC OpenBenchmarking.org Seconds, Fewer Is Better FLAC Audio Encoding 1.3.0 WAV To FLAC Clang 3.4 Intel OpenMP Clang 3.4 Stock GCC 4.9.0 2 4 6 8 10 SE +/- 0.00, N = 5 SE +/- 0.00, N = 5 SE +/- 0.00, N = 5 6.66 6.65 6.02 1. (CXX) g++ options: -O2 -fvisibility=hidden -logg -lm
GraphicsMagick Operation: Blur OpenBenchmarking.org Iterations Per Minute, More Is Better GraphicsMagick 1.3.19 Operation: Blur Clang 3.4 Intel OpenMP Clang 3.4 Stock GCC 4.9.0 20 40 60 80 100 SE +/- 0.00, N = 3 SE +/- 0.00, N = 3 SE +/- 0.00, N = 3 88 64 100 -fopenmp -lgomp -std=gnu99 -fopenmp -lgomp 1. (CC) gcc options: -O2 -pthread -ljbig -lwebp -ljpeg -lXext -lSM -lICE -lX11 -llzma -lxml2 -lz -lm -lpthread
GraphicsMagick Operation: Sharpen OpenBenchmarking.org Iterations Per Minute, More Is Better GraphicsMagick 1.3.19 Operation: Sharpen Clang 3.4 Intel OpenMP Clang 3.4 Stock GCC 4.9.0 14 28 42 56 70 SE +/- 0.00, N = 3 SE +/- 0.00, N = 3 SE +/- 0.33, N = 3 59 42 64 -fopenmp -lgomp -std=gnu99 -fopenmp -lgomp 1. (CC) gcc options: -O2 -pthread -ljbig -lwebp -ljpeg -lXext -lSM -lICE -lX11 -llzma -lxml2 -lz -lm -lpthread
GraphicsMagick Operation: Resizing OpenBenchmarking.org Iterations Per Minute, More Is Better GraphicsMagick 1.3.19 Operation: Resizing Clang 3.4 Stock GCC 4.9.0 30 60 90 120 150 SE +/- 0.00, N = 3 SE +/- 0.00, N = 3 87 114 -std=gnu99 -fopenmp -lgomp 1. (CC) gcc options: -O2 -pthread -ljbig -lwebp -ljpeg -lXext -lSM -lICE -lX11 -llzma -lxml2 -lz -lm -lpthread
GraphicsMagick Operation: HWB Color Space OpenBenchmarking.org Iterations Per Minute, More Is Better GraphicsMagick 1.3.19 Operation: HWB Color Space Clang 3.4 Intel OpenMP Clang 3.4 Stock GCC 4.9.0 30 60 90 120 150 SE +/- 0.00, N = 3 SE +/- 0.00, N = 3 SE +/- 0.33, N = 3 113 110 134 -fopenmp -lgomp -std=gnu99 -fopenmp -lgomp 1. (CC) gcc options: -O2 -pthread -ljbig -lwebp -ljpeg -lXext -lSM -lICE -lX11 -llzma -lxml2 -lz -lm -lpthread
GraphicsMagick Operation: Local Adaptive Thresholding OpenBenchmarking.org Iterations Per Minute, More Is Better GraphicsMagick 1.3.19 Operation: Local Adaptive Thresholding Clang 3.4 Intel OpenMP Clang 3.4 Stock GCC 4.9.0 16 32 48 64 80 SE +/- 0.00, N = 3 SE +/- 0.00, N = 3 SE +/- 0.00, N = 3 68 68 70 -fopenmp -lgomp -std=gnu99 -fopenmp -lgomp 1. (CC) gcc options: -O2 -pthread -ljbig -lwebp -ljpeg -lXext -lSM -lICE -lX11 -llzma -lxml2 -lz -lm -lpthread
LAME MP3 Encoding WAV To MP3 OpenBenchmarking.org Seconds, Fewer Is Better LAME MP3 Encoding 3.99.3 WAV To MP3 Clang 3.4 Intel OpenMP Clang 3.4 Stock GCC 4.9.0 4 8 12 16 20 SE +/- 0.01, N = 5 SE +/- 0.01, N = 5 SE +/- 0.01, N = 5 15.06 15.06 15.93 1. (CC) gcc options: -O3 -ffast-math -funroll-loops -pipe -lncurses -lm
Smallpt Global Illumination Renderer; 100 Samples OpenBenchmarking.org Seconds, Fewer Is Better Smallpt 1.0 Global Illumination Renderer; 100 Samples Clang 3.4 Intel OpenMP Clang 3.4 Stock GCC 4.9.0 100 200 300 400 500 SE +/- 0.00, N = 3 SE +/- 0.33, N = 3 SE +/- 0.00, N = 3 238 484 239 1. (CXX) g++ options: -fopenmp
Timed Apache Compilation Time To Compile OpenBenchmarking.org Seconds, Fewer Is Better Timed Apache Compilation 2.4.7 Time To Compile Clang 3.4 Intel OpenMP Clang 3.4 Stock GCC 4.9.0 13 26 39 52 65 SE +/- 0.05, N = 3 SE +/- 0.07, N = 3 SE +/- 0.11, N = 3 41.94 43.35 60.08
TTSIOD 3D Renderer Phong Rendering With Soft-Shadow Mapping OpenBenchmarking.org FPS, More Is Better TTSIOD 3D Renderer 2.2z Phong Rendering With Soft-Shadow Mapping Clang 3.4 Intel OpenMP GCC 4.9.0 14 28 42 56 70 SE +/- 0.10, N = 3 SE +/- 0.04, N = 3 64.18 64.35 1. (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