[cfe-dev] Clang executable sizes and build stats

Dimitry Andric via cfe-dev cfe-dev at lists.llvm.org
Sat Mar 17 05:35:55 PDT 2018


Hi all,

I recently did a run where I built clang executables on FreeBSD 12-CURRENT [1], from trunk r250000 (2015-10-11) all through r327700 (2018-03-16), with increments of 100 revisions.  This is mainly meant as an archive, for easily doing bisections, but there are also some interesting statistics.

From r250000 through r327700:
* the total (stripped) executable size grew by approximately 43%
* the size of the text segment grew by approximately 41%
* the size of the data segment grew by approximately 61%
* the size of the bss segment grew by approximately 185%
* real build time (on a 32 core system) grew by approximately 60%
* user build time (on a 32 core system) grew by approximately 62%
* maximum resident set size (RSS) grew by approximately 32%

Google spreadsheet with more numbers and some graphs:

https://docs.google.com/spreadsheets/d/e/2PACX-1vSGq1U7j45JNC_bcG4HV3jKOV4WBUPbTSgMMFXd5SD0IEPTAFwWnlU2ysprmnHsNe5WONRCjg8F5mHK/pubhtml

-Dimitry

[1] These were built using the "ninja clang clang-headers" target, followed by "ninja install-clang install-clang-headers".

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 223 bytes
Desc: Message signed with OpenPGP
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20180317/14bfd665/attachment.sig>


More information about the cfe-dev mailing list