GCC 14 vs. LLVM Clang 18 Compiler Performance On Fedora 40

Written by Michael Larabel in Software on 24 April 2024 at 11:02 AM EDT. Page 3 of 5. 34 Comments.
LZ4 Compression benchmark with settings of Compression Level: 3, Compression Speed. GCC 14.0.1 20240411 was the fastest.
LZ4 Compression benchmark with settings of Compression Level: 3, Decompression Speed. GCC 14.0.1 20240411 was the fastest.
LZ4 Compression benchmark with settings of Compression Level: 9, Compression Speed. GCC 14.0.1 20240411 was the fastest.
LZ4 Compression benchmark with settings of Compression Level: 9, Decompression Speed. GCC 14.0.1 20240411 was the fastest.

The LZ4 build with GCC tended to be faster than Clang on this AMD Threadripper 7000 series system.

Zstd Compression benchmark with settings of Compression Level: 12, Compression Speed. GCC 14.0.1 20240411 was the fastest.
Zstd Compression benchmark with settings of Compression Level: 12, Decompression Speed. Clang 18.1.1 was the fastest.
Zstd Compression benchmark with settings of Compression Level: 19, Compression Speed. GCC 14.0.1 20240411 was the fastest.
Zstd Compression benchmark with settings of Compression Level: 19, Decompression Speed. Clang 18.1.1 was the fastest.
Zstd Compression benchmark with settings of Compression Level: 19, Long Mode, Compression Speed. Clang 18.1.1 was the fastest.
Zstd Compression benchmark with settings of Compression Level: 19, Long Mode, Decompression Speed. Clang 18.1.1 was the fastest.

The Zstd performance was competitive between both of these compilers tested.

JPEG-XL libjxl benchmark with settings of Input: PNG, Quality: 90. Clang 18.1.1 was the fastest.
JPEG-XL libjxl benchmark with settings of Input: JPEG, Quality: 90. Clang 18.1.1 was the fastest.
JPEG-XL libjxl benchmark with settings of Input: PNG, Quality: 100. GCC 14.0.1 20240411 was the fastest.
WebP Image Encode benchmark with settings of Encode Settings: Quality 100. GCC 14.0.1 20240411 was the fastest.
WebP Image Encode benchmark with settings of Encode Settings: Quality 100, Highest Compression. Clang 18.1.1 was the fastest.
WebP Image Encode benchmark with settings of Encode Settings: Quality 100, Lossless, Highest Compression. Clang 18.1.1 was the fastest.

Very healthy competitive for GCC 14 and Clang 18 on Fedora 40 x86_64.


Related Articles