LLVM Clang 16 vs. GCC 13 Compiler Performance On Intel Raptor Lake

Written by Michael Larabel in Software on 11 May 2023 at 11:00 AM EDT. Page 4 of 5. 35 Comments.
Coremark benchmark with settings of CoreMark Size 666, Iterations Per Second. GCC 13.1: -O3 -march=native -flto was the fastest.
C-Ray benchmark with settings of Total Time, 4K, 16 Rays Per Pixel. GCC 13.1: -O3 -march=native -flto was the fastest.
AOBench benchmark with settings of Size: 2048 x 2048, Total Time. GCC 13.1: -O3 -march=native -flto was the fastest.

GCC 13 picked wins with Coremark, AOBench, and C-Ray.

Liquid-DSP benchmark with settings of Threads: 16, Buffer Length: 256, Filter Length: 57. Clang 16: -O3 -march=native -flto was the fastest.
Liquid-DSP benchmark with settings of Threads: 32, Buffer Length: 256, Filter Length: 57. Clang 16: -O3 -march=native -flto was the fastest.
ASTC Encoder benchmark with settings of Preset: Fast. Clang 16: -O3 -march=native -flto was the fastest.
ASTC Encoder benchmark with settings of Preset: Thorough. Clang 16: -O3 -march=native -flto was the fastest.
ASTC Encoder benchmark with settings of Preset: Exhaustive. Clang 16: -O3 -march=native -flto was the fastest.
libjpeg-turbo tjbench benchmark with settings of Test: Decompression Throughput. Clang 16: -O3 -march=native -flto was the fastest.

The LLVM Clang compiler performance has certainly come a long ways over the years and on x86_64 is now often capable of outperforming the GNU Compiler Collection.


Related Articles