This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
g++ compile-time regression
- To: gcc at gcc dot gnu dot org
- Subject: g++ compile-time regression
- From: Carlo Wood <carlo at alinoe dot com>
- Date: Wed, 28 Feb 2001 16:32:04 +0100
I finally succeeded in installing several compilers on my box.
I think this is an interesting result:
~/c++/tests>time g++-2.95.1 hello.cc
real 0m0.213s
user 0m0.180s
sys 0m0.030s
~/c++/tests>time g++-2.95.2 hello.cc
real 0m0.216s
user 0m0.150s
sys 0m0.060s
~/c++/tests>time g++-2.95.3 hello.cc
real 0m0.598s
user 0m0.150s
sys 0m0.050s
~/c++/tests>time g++ hello.cc # <-- 2.96 is the default
real 0m0.634s
user 0m0.150s
sys 0m0.050s
~/c++/tests>time g++-3.0 hello.cc
real 0m2.055s
user 0m1.140s
sys 0m0.100s
~/c++/tests>time g++-3.1 hello.cc
real 0m2.174s
user 0m2.080s
sys 0m0.090s
3.1 is ten times slower than 2.95.1 for a 'hello world' program :).
Hmm.
--
Carlo Wood <carlo@alinoe.com>
PS
~/c++/tests>cat hello.cc
#include <iostream>
int main(void)
{
std::cout << "Hello world\n";
return 0;
}