GCC 4.9 vs. LLVM Clang 3.5 Linux Compiler Benchmarks Some early compiler benchmarks of LLVM Clang 3.5 SVN against GCC 4.9.0 RC1 on Ubuntu 14.04 LTS with the Linux 3.13 kernel and using an Intel Core i7 4770K Haswell system. Benchmarks by Michael Larabel for a future article on Phoronix.com.
HTML result view exported from: https://openbenchmarking.org/result/1404144-KH-CLANG359076&grw .
GCC 4.9 vs. LLVM Clang 3.5 Linux Compiler Benchmarks Processor Motherboard Chipset Memory Disk Graphics Audio Monitor Network OS Kernel Desktop Display Server Display Driver OpenGL Compiler File-System Screen Resolution GCC 4.8.2 GCC 4.9.0 RC1 LLVM Clang 3.5 20140413 Intel Core i7-4770K @ 3.50GHz (8 Cores) ECS Z87H3-A2X EXTREME v1.0 Intel 4th Gen Core DRAM 16384MB 120GB Samsung SSD 840 ECS NVIDIA GeForce GTX 460 768MB (675/1804MHz) Realtek ALC1150 Samsung SyncMaster Realtek RTL8111/8168/8411 Ubuntu 14.04 3.13.0-22-generic (x86_64) Unity 7.2.0 X Server 1.15.0 NVIDIA 337.12 4.3.0 GCC 4.8.2 ext4 2560x1600 GCC 4.9.0 20140411 Clang 3.5.0-1~exp1 OpenBenchmarking.org Compiler Details - GCC 4.8.2, GCC 4.9.0 RC1: --enable-checking=release Processor Details - Scaling Governor: acpi-cpufreq ondemand
GCC 4.9 vs. LLVM Clang 3.5 Linux Compiler Benchmarks hint: FLOAT encode-flac: WAV To FLAC encode-mp3: WAV To MP3 himeno: Poisson Pressure Solver build-imagemagick: Time To Compile build-apache: Time To Compile build-php: Time To Compile graphics-magick: Blur graphics-magick: Sharpen graphics-magick: Resizing graphics-magick: HWB Color Space graphics-magick: Local Adaptive Thresholding c-ray: Total Time ffmpeg: H.264 HD To NTSC DV smallpt: Global Illumination Renderer; 100 Samples apache: Static Web Page Serving ebizzy: Records/s GCC 4.8.2 GCC 4.9.0 RC1 LLVM Clang 3.5 20140413 367476347.00 4.82 12.42 1810.10 60.35 27.14 26.27 170 140 198 216 97 16.98 13.99 24 35904.53 42849 373674384.83 3.70 10.87 1828.15 60.59 27.88 27.05 166 140 199 214 102 17.09 13.80 35953.73 42950 237448328.67 4.23 13.49 1954.26 29.61 18.00 16.25 87 61 95 155 94 25.84 13.89 134 36432.04 43202 OpenBenchmarking.org
Hierarchical INTegration Test: FLOAT OpenBenchmarking.org QUIPs, More Is Better Hierarchical INTegration 1.0 Test: FLOAT GCC 4.8.2 GCC 4.9.0 RC1 LLVM Clang 3.5 20140413 80M 160M 240M 320M 400M SE +/- 103032.27, N = 3 SE +/- 362392.17, N = 3 SE +/- 938522.38, N = 3 367476347.00 373674384.83 237448328.67 1. (CC) gcc options: -O3 -march=native -lm
FLAC Audio Encoding WAV To FLAC OpenBenchmarking.org Seconds, Fewer Is Better FLAC Audio Encoding 1.3.0 WAV To FLAC GCC 4.8.2 GCC 4.9.0 RC1 LLVM Clang 3.5 20140413 1.0845 2.169 3.2535 4.338 5.4225 SE +/- 0.06, N = 7 SE +/- 0.09, N = 10 SE +/- 0.01, N = 5 4.82 3.70 4.23 1. (CXX) g++ options: -O3 -march=native -fvisibility=hidden -logg -lm
LAME MP3 Encoding WAV To MP3 OpenBenchmarking.org Seconds, Fewer Is Better LAME MP3 Encoding 3.99.3 WAV To MP3 GCC 4.8.2 GCC 4.9.0 RC1 LLVM Clang 3.5 20140413 3 6 9 12 15 SE +/- 0.04, N = 5 SE +/- 0.01, N = 5 SE +/- 0.04, N = 5 12.42 10.87 13.49 1. (CC) gcc options: -pipe -O3 -march=native -lm
Himeno Benchmark Poisson Pressure Solver OpenBenchmarking.org MFLOPS, More Is Better Himeno Benchmark 3.0 Poisson Pressure Solver GCC 4.8.2 GCC 4.9.0 RC1 LLVM Clang 3.5 20140413 400 800 1200 1600 2000 SE +/- 3.93, N = 3 SE +/- 1.31, N = 3 SE +/- 12.20, N = 3 1810.10 1828.15 1954.26 1. (CC) gcc options: -O3 -march=native
Timed ImageMagick Compilation Time To Compile OpenBenchmarking.org Seconds, Fewer Is Better Timed ImageMagick Compilation 6.8.1-10 Time To Compile GCC 4.8.2 GCC 4.9.0 RC1 LLVM Clang 3.5 20140413 14 28 42 56 70 SE +/- 0.36, N = 3 SE +/- 0.04, N = 3 SE +/- 0.14, N = 3 60.35 60.59 29.61
Timed Apache Compilation Time To Compile OpenBenchmarking.org Seconds, Fewer Is Better Timed Apache Compilation 2.4.7 Time To Compile GCC 4.8.2 GCC 4.9.0 RC1 LLVM Clang 3.5 20140413 7 14 21 28 35 SE +/- 0.19, N = 3 SE +/- 0.23, N = 3 SE +/- 0.05, N = 3 27.14 27.88 18.00
Timed PHP Compilation Time To Compile OpenBenchmarking.org Seconds, Fewer Is Better Timed PHP Compilation 5.2.9 Time To Compile GCC 4.8.2 GCC 4.9.0 RC1 LLVM Clang 3.5 20140413 6 12 18 24 30 SE +/- 0.08, N = 3 SE +/- 0.02, N = 3 SE +/- 0.03, N = 3 26.27 27.05 16.25 1. (CC) gcc options: -O3 -march=native -pedantic -ldl -lz -lm
GraphicsMagick Operation: Blur OpenBenchmarking.org Iterations Per Minute, More Is Better GraphicsMagick 1.3.19 Operation: Blur GCC 4.8.2 GCC 4.9.0 RC1 LLVM Clang 3.5 20140413 40 80 120 160 200 SE +/- 0.33, N = 3 SE +/- 0.33, N = 3 SE +/- 0.33, N = 3 170 166 87 -std=gnu99 -fopenmp -std=gnu99 -fopenmp 1. (CC) gcc options: -O3 -march=native -pthread -ljbig -lwebp -ljpeg -lXext -lX11 -llzma -lxml2 -lz -lm -lpthread
GraphicsMagick Operation: Sharpen OpenBenchmarking.org Iterations Per Minute, More Is Better GraphicsMagick 1.3.19 Operation: Sharpen GCC 4.8.2 GCC 4.9.0 RC1 LLVM Clang 3.5 20140413 30 60 90 120 150 SE +/- 0.33, N = 3 SE +/- 0.00, N = 3 SE +/- 0.33, N = 3 140 140 61 -std=gnu99 -fopenmp -std=gnu99 -fopenmp 1. (CC) gcc options: -O3 -march=native -pthread -ljbig -lwebp -ljpeg -lXext -lX11 -llzma -lxml2 -lz -lm -lpthread
GraphicsMagick Operation: Resizing OpenBenchmarking.org Iterations Per Minute, More Is Better GraphicsMagick 1.3.19 Operation: Resizing GCC 4.8.2 GCC 4.9.0 RC1 LLVM Clang 3.5 20140413 40 80 120 160 200 SE +/- 0.33, N = 3 SE +/- 0.00, N = 3 SE +/- 0.00, N = 3 198 199 95 -std=gnu99 -fopenmp -std=gnu99 -fopenmp 1. (CC) gcc options: -O3 -march=native -pthread -ljbig -lwebp -ljpeg -lXext -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 GCC 4.8.2 GCC 4.9.0 RC1 LLVM Clang 3.5 20140413 50 100 150 200 250 SE +/- 0.00, N = 3 SE +/- 0.33, N = 3 SE +/- 0.33, N = 3 216 214 155 -std=gnu99 -fopenmp -std=gnu99 -fopenmp 1. (CC) gcc options: -O3 -march=native -pthread -ljbig -lwebp -ljpeg -lXext -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 GCC 4.8.2 GCC 4.9.0 RC1 LLVM Clang 3.5 20140413 20 40 60 80 100 SE +/- 0.33, N = 3 SE +/- 0.00, N = 3 SE +/- 0.33, N = 3 97 102 94 -std=gnu99 -fopenmp -std=gnu99 -fopenmp 1. (CC) gcc options: -O3 -march=native -pthread -ljbig -lwebp -ljpeg -lXext -lX11 -llzma -lxml2 -lz -lm -lpthread
C-Ray Total Time OpenBenchmarking.org Seconds, Fewer Is Better C-Ray 1.1 Total Time GCC 4.8.2 GCC 4.9.0 RC1 LLVM Clang 3.5 20140413 6 12 18 24 30 SE +/- 0.01, N = 3 SE +/- 0.01, N = 3 SE +/- 0.00, N = 3 16.98 17.09 25.84 1. (CC) gcc options: -lm -lpthread -O3 -march=native
FFmpeg H.264 HD To NTSC DV OpenBenchmarking.org Seconds, Fewer Is Better FFmpeg 2.1.1 H.264 HD To NTSC DV GCC 4.8.2 GCC 4.9.0 RC1 LLVM Clang 3.5 20140413 4 8 12 16 20 SE +/- 0.03, N = 3 SE +/- 0.01, N = 3 SE +/- 0.12, N = 3 13.99 13.80 13.89 -fno-tree-vectorize -MF -MT -fno-tree-vectorize -MF -MT -Qunused-arguments 1. (CC) gcc options: -lavdevice -lavfilter -lavformat -lavcodec -lswresample -lswscale -lavutil -ldl -lasound -lSDL -lm -pthread -O3 -march=native -std=c99 -fomit-frame-pointer -fno-math-errno -fno-signed-zeros -MMD
Smallpt Global Illumination Renderer; 100 Samples OpenBenchmarking.org Seconds, Fewer Is Better Smallpt 1.0 Global Illumination Renderer; 100 Samples GCC 4.8.2 LLVM Clang 3.5 20140413 30 60 90 120 150 SE +/- 0.00, N = 3 SE +/- 0.67, N = 3 24 134 1. (CXX) g++ options: -fopenmp -O3 -march=native
Apache Benchmark Static Web Page Serving OpenBenchmarking.org Requests Per Second, More Is Better Apache Benchmark 2.4.7 Static Web Page Serving GCC 4.8.2 GCC 4.9.0 RC1 LLVM Clang 3.5 20140413 8K 16K 24K 32K 40K SE +/- 136.25, N = 3 SE +/- 76.61, N = 3 SE +/- 73.90, N = 3 35904.53 35953.73 36432.04 1. (CC) gcc options: -shared -fPIC -pthread -O3 -march=native
ebizzy Records/s OpenBenchmarking.org Seconds, More Is Better ebizzy 0.3 Records/s GCC 4.8.2 GCC 4.9.0 RC1 LLVM Clang 3.5 20140413 9K 18K 27K 36K 45K SE +/- 109.85, N = 3 SE +/- 44.08, N = 3 SE +/- 53.03, N = 3 42849 42950 43202 1. (CC) gcc options: -pthread -lpthread -O3 -march=native
Phoronix Test Suite v10.8.5