This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Compile time performance in C++ (question).
- To: <gcc at gcc dot gnu dot org>
- Subject: Compile time performance in C++ (question).
- From: "Alexander Rozenman" <shure at sd dot co dot il>
- Date: Fri, 13 Jul 2001 10:01:31 +0300
Hello gcc team !
I have a question about new gcc 3.0 release.
I compiled gcc 3.0 on sparc-10 solaris 2.6, now
when I try to compile some cpp files (many classes, STL)
it takes a lot of time (gcc 2.95.2 was much faster).
There are results of benchmarking for standard "Hello World"
c++ program (include iostream, cout <<, return):
with gcc.2.95.5
> time gcc -c hw.cpp
>> 0.20u 0.06s 0:00.31 90.3%
with gcc.3.0
> time ~/gcc-3.0/bin/gcc -c hw.cpp
>> 4.54u 0.15s 0:04.70 99.7%
All files are located in local machine, no
network problem ... 1/2 second and 4 seconds ....
(8-times (800%) regression !).
It is very bad performance. Most probably,
my build of gcc3.0 is wrong.
My configuration parameters are:
configure --exec-prefix="..."
and gcc.2.95.2 was used for building of gcc 3.0.
I hope that it is my mistake .... Please help ....