GCC 13 vs. Clang 17 Compiler Benchmarks, Early Clang 18 & GCC 14 Development Benchmarks

Written by Michael Larabel in Software on 28 December 2023 at 07:27 AM EST. Page 3 of 8. 13 Comments.
SMHasher benchmark with settings of Hash: SHA3-256. Clang 18 23 Dec was the fastest.
SMHasher benchmark with settings of Hash: FarmHash128. GCC 13.2 was the fastest.
SMHasher benchmark with settings of Hash: FarmHash32 x86_64 AVX. GCC 13.2 was the fastest.
SMHasher benchmark with settings of Hash: t1ha0_aes_avx2 x86_64. GCC 14 23 Dec was the fastest.
SMHasher benchmark with settings of Hash: MeowHash x86_64 AES-NI. GCC 13.2 was the fastest.

The SMHasher results varied with the different crypto algorithms tested.

Timed MrBayes Analysis benchmark with settings of Primate Phylogeny Analysis. Clang 17.0.2 was the fastest.
LAMMPS Molecular Dynamics Simulator benchmark with settings of Model: 20k Atoms. GCC 13.2 was the fastest.
Xmrig benchmark with settings of Variant: KawPow, Hash Count: 1M. GCC 14 23 Dec was the fastest.
Xmrig benchmark with settings of Variant: Monero, Hash Count: 1M. GCC 13.2 was the fastest.
LZ4 Compression benchmark with settings of Compression Level: 9, Compression Speed. Clang 18 23 Dec was the fastest.
LZ4 Compression benchmark with settings of Compression Level: 9, Decompression Speed. Clang 17.0.2 was the fastest.

It's great as always seeing the friendly competition between these open-source compilers.

Zstd Compression benchmark with settings of Compression Level: 12, Compression Speed. GCC 13.2 was the fastest.
Zstd Compression benchmark with settings of Compression Level: 19, Compression Speed. Clang 17.0.2 was the fastest.
Zstd Compression benchmark with settings of Compression Level: 19, Decompression Speed. GCC 13.2 was the fastest.

Clang continues to prove capable of matching or exceeding the performance of the much older GNU Compiler Collection on both x86_64 and AArch64.


Related Articles