Clang'ed FreeBSD: Builds Quicker, Uses Way Less RAM

Here wizards, magicians, sorcerers and everybody can rest a bit and talk about anything they like.

Just remember to respect the rules.

Clang'ed FreeBSD: Builds Quicker, Uses Way Less RAM

Postby mmix » Sep 9th, '12, 14:04

clang seems getting better than gcc.
http://www.phoronix.com/scan.php?page=n ... px=MTE3NjI
http://lists.cs.uiuc.edu/pipermail/llvm ... 53056.html

Summary:
--------
For building this specific large C++ program, gcc 4.2.1 is ~86% slower than clang 3.1 in real time, ~82% slower in user time, and ~176% slower in system time. The maximum resident set size during building is ~217% larger, and it causes ~279% more page reclaims.

Though gcc 4.7.1 is faster than its older version, it is still ~68% slower than clang 3.1 in real time, ~64% slower in user time, and ~161% slower in system time. The maximum resident set size during building is ~220% larger, and it causes ~208% more page reclaims.

Finally, clang 3.2 is ~3% slower than clang 3.1 in both real time and user time, and ~2% slower in system time. The maximum resident set size and the number of page reclaims during building are approximately equal.

Conclusion:
-----------
Clang 3.1 is clearly the fastest compiler for building this specific large C++ program, with clang 3.2 trailing closely behind. Both are significantly faster, and use much less memory than either version of gcc
mmix
 
Posts: 110
Joined: Jun 24th, '12, 05:35

Re: Clang'ed FreeBSD: Builds Quicker, Uses Way Less RAM

Postby tom_ » Sep 9th, '12, 19:57

your links are about compilation time and memory peak used while compiling.

in this link there are some performance comparisons between compiled code:

http://www.phoronix.com/scan.php?page=article&item=gcc48_llvm32_svn1&num=4

For most of these C/C++ benchmarks for the quick Subversion code comparison of LLVM/Clang vs. GCC, the GNU Compiler Collection continues to be the fastest performance.
tom_
 
Posts: 423
Joined: Sep 3rd, '11, 12:26
Location: Porto Ercole, Italy


Return to The Wizards Lair

Who is online

Users browsing this forum: No registered users and 0 guests

cron