Benchmarking LLVM & Clang Against GCC 4.5

Written by Michael Larabel in Software on 21 April 2010 at 01:00 AM EDT. Page 2 of 6. 17 Comments.

While GCC 4.5 is taking more time to compile programs as we talked about in the earlier GCC benchmarking article (likely due to the LTO support and other new features), LLVM-GCC and Clang are building programs much faster. LLVM-GCC and Clang took 18% less time to build Apache than it did with GCC 4.3/4.4.

Clang had problems building PHP, but LLVM-GCC took 20% less time to build PHP than it did in GCC 4.3/4.4 and a 24% savings against GCC 4.5.0.

LLVM-GCC had a problem with the ImageMagick compilation process, but Clang worked. This time though Clang took slightly longer to build than GCC 4.5.0, while still GCC 4.3.0/4.4.0 were much quicker with their build process.


Related Articles