This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug libstdc++/13351] [3.3 Regression] BIG slowdown in generated code (compared to 3.2)


------- 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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]