This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
c++ compilation perf. comparison (gcc, icc, como) [was: Re: Suggestionsfor improving gcc 3.2 compilation speed?]
- From: Karel Gardas <kgardas at objectsecurity dot com>
- To: "Kaveh R. Ghazi" <ghazi at caip dot rutgers dot edu>
- Cc: awinkler at maad dot com, <gcc at gcc dot gnu dot org>
- Date: Fri, 7 Mar 2003 11:25:34 +0100 (CET)
- Subject: c++ compilation perf. comparison (gcc, icc, como) [was: Re: Suggestionsfor improving gcc 3.2 compilation speed?]
On Thu, 6 Mar 2003, Kaveh R. Ghazi wrote:
> > but I
> > guess my ideal running time would be closer to 10 minutes. Am I
> > dreaming? :)
>
> I don't know, how long does your code take to compile with 2.95.3 or
> some other compiler?
I hope you'll not mind when I've used your question to post my own
compilation performance comparison. I've meassured compilation of orb
directory from MICO 2.3.9 (C++ code) where I always used -O0 to get data
which affect development of package (i.e. I guess while developing people
are using -O0). Compared compilers are GCC 3.2.2 and 2.95.4 20011002
(Debian prerelease) (as distributed with Debian GNU/Linux 3.0), Comeau
C/C++ 4.3.0.1 and Intel C++ 7.0.
I have used default Comeau template instatiation mode and so some files
were recompiled before linking to correctly instatiate assigned templates.
Since for development, compiler usually emit its helper files (*.ti, *.ii)
which helps it to correctly instatiate templates during the normal
compilation (I mean first compilation here), I've meassured also
compilation time after deleting only *.o lib* files. - just to know plain
compilation time w/o required prelinking phase. I've also meassured both
plain compilation and compilation with using precompiled-headers. I hope
it'll be clear from report below.
If you would like to compare these results with gcc3.3 and gcc3.4, then
please use my already posted comparison:
http://gcc.gnu.org/ml/gcc/2003-02/msg01530.html
Cheers,
Karel
gcc options: -I../include -O0 -Wall -fpermissive -DPIC -fPIC -c
gcc3.2.2
real 14m34.251s
user 13m26.440s
sys 0m13.360s
gcc2.95.4 20011002 (Debian prerelease)
real 7m15.521s
user 6m29.310s
sys 0m12.950s
como options: -I../include -O0 -a --long_long --implicit_extern_c_type_conversion --diag_suppress=997 -c
como4.3.0.1
real 10m3.988s
user 8m53.540s
sys 0m25.700s
como4.3.0.1 (after rm *.o lib*)
real 7m50.166s
user 6m57.830s
sys 0m19.760s
como4.3.0.1 + PCH
additional pch options used: --pch --pch_dir /home/karel/arch/devel/compile-time/./pch -DFAST_PCH
real 7m21.436s
user 5m46.690s
sys 0m35.680s
como4.3.0.1 + PCH (after rm *.o lib* ../pch/*)
real 5m23.410s
user 4m25.750s
sys 0m26.670s
icc7 options: -I../include -O0 -fPIC -DPIC -c
icc7
real 6m31.781s
user 5m53.810s
sys 0m13.420s
--
Karel Gardas kgardas at objectsecurity dot com
ObjectSecurity Ltd. http://www.objectsecurity.com