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 4 of 5. 34 Comments.
TSCP benchmark with settings of AI Chess Performance. Clang 18.1.1 was the fastest.
John The Ripper benchmark with settings of Test: bcrypt. Clang 18.1.1 was the fastest.
John The Ripper benchmark with settings of Test: WPA PSK. GCC 14.0.1 20240411 was the fastest.
John The Ripper benchmark with settings of Test: Blowfish. Clang 18.1.1 was the fastest.
John The Ripper benchmark with settings of Test: HMAC-SHA512. GCC 14.0.1 20240411 was the fastest.

Recently Clang has been picking up more performance wins at least on Linux x86_64.

GraphicsMagick benchmark with settings of Operation: Swirl. GCC 14.0.1 20240411 was the fastest.
GraphicsMagick benchmark with settings of Operation: Rotate. GCC 14.0.1 20240411 was the fastest.
GraphicsMagick benchmark with settings of Operation: Sharpen. GCC 14.0.1 20240411 was the fastest.
GraphicsMagick benchmark with settings of Operation: Enhanced. Clang 18.1.1 was the fastest.
GraphicsMagick benchmark with settings of Operation: Resizing. GCC 14.0.1 20240411 was the fastest.
GraphicsMagick benchmark with settings of Operation: Noise-Gaussian. GCC 14.0.1 20240411 was the fastest.

Some workloads like GraphicsMagick have long yielded the best performance on the GNU Compiler Collection.

Kvazaar benchmark with settings of Video Input: Bosphorus 4K, Video Preset: Medium. Clang 18.1.1 was the fastest.
Kvazaar benchmark with settings of Video Input: Bosphorus 4K, Video Preset: Very Fast. Clang 18.1.1 was the fastest.
Kvazaar benchmark with settings of Video Input: Bosphorus 4K, Video Preset: Super Fast. Clang 18.1.1 was the fastest.
SVT-AV1 benchmark with settings of Encoder Mode: Preset 8, Input: Bosphorus 4K. GCC 14.0.1 20240411 was the fastest.
SVT-AV1 benchmark with settings of Encoder Mode: Preset 12, Input: Bosphorus 4K. GCC 14.0.1 20240411 was the fastest.
uvg266 benchmark with settings of Video Input: Bosphorus 4K, Video Preset: Slow. GCC 14.0.1 20240411 was the fastest.
uvg266 benchmark with settings of Video Input: Bosphorus 4K, Video Preset: Medium. GCC 14.0.1 20240411 was the fastest.
uvg266 benchmark with settings of Video Input: Bosphorus 4K, Video Preset: Very Fast. Clang 18.1.1 was the fastest.
x265 benchmark with settings of Video Input: Bosphorus 4K. Clang 18.1.1 was the fastest.

For workloads like video encoders that often rely on hand-tuned Assembly, there still can be some smaller performance differences between compiler builds.


Related Articles