This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: c++/9111: gcc 3.0.4 slow run time reults
- From: paolo at gcc dot gnu dot org
- To: dita at cs dot technion dot ac dot il, gcc-bugs at gcc dot gnu dot org, gcc-prs at gcc dot gnu dot org, nobody at gcc dot gnu dot org
- Date: 31 Dec 2002 12:52:36 -0000
- Subject: Re: c++/9111: gcc 3.0.4 slow run time reults
- Reply-to: paolo at gcc dot gnu dot org, dita at cs dot technion dot ac dot il, gcc-bugs at gcc dot gnu dot org, gcc-prs at gcc dot gnu dot org, nobody at gcc dot gnu dot org, gcc-gnats at gcc dot gnu dot org
Synopsis: gcc 3.0.4 slow run time reults
State-Changed-From-To: open->feedback
State-Changed-By: paolo
State-Changed-When: Tue Dec 31 04:52:35 2002
State-Changed-Why:
This is by and large a known issue (see libstdc++/7076 and
some recent postings on the list).
However, for the time being, could you possibly try:
1- Upgrading to gcc3.2.1
2- Putting std::ios::sync_with_stdio(false); at the
beginning of your test.
On i686-pc-linux-gnu, I'm getting the followin run times
for HelloWorld2.cc (-O2 > /dev/null):
3.0.4: 8.190u 4.440s 0:12.74 99.1%
3.0.4 + sync(false): 2.360u 1.240s 0:03.63 99.1%
3.2.1: 4.760u 0.410s 0:05.21 99.2%
3.2.1 + sync(false): 1.320u 0.370s 0:01.70 99.4%
Thanks, Paolo.
http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=9111