This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug libstdc++/13351] [3.3 Regression] BIG slowdown in generated code (compared to 3.2)
- From: "giovannibajo at libero dot it" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 8 Dec 2003 13:09:56 -0000
- Subject: [Bug libstdc++/13351] [3.3 Regression] BIG slowdown in generated code (compared to 3.2)
- References: <20031208072839.13351.cline@parashift.com>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Additional Comments From giovannibajo at libero dot it 2003-12-08 13:09 -------
Ok, the example confused me. Much easier to not play games with timers and just
do this in the main:
int main()
{
const unsigned perIteration = 1000u;
for (unsigned i=0;i<30;i++)
bar(perIteration, foo(perIteration));
return 0;
}
I'll attach my simplified testcase. Now I get this:
$ g++-3.2.2 -O pr13351.cc && time ./a.exe
real 0m3.525s
user 0m0.010s
sys 0m0.020s
$ g++-3.3.1 -O pr13351.cc && time ./a.exe
real 0m22.814s
user 0m21.510s
sys 0m0.050s
Which is indeed a BIG slowdown.
--
What |Removed |Added
----------------------------------------------------------------------------
Summary|[3.3 Regression] Generated |[3.3 Regression] BIG
|code is noticeable slower |slowdown in generated code
|(compared to 3.2) |(compared to 3.2)
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=13351