public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/33604]  New: significantly slower results with 4.3 compared to 4.2
@ 2007-09-30 21:13 michael dot olbrich at gmx dot net
  2007-09-30 21:15 ` [Bug c++/33604] " michael dot olbrich at gmx dot net
                   ` (51 more replies)
  0 siblings, 52 replies; 54+ messages in thread
From: michael dot olbrich at gmx dot net @ 2007-09-30 21:13 UTC (permalink / raw)
  To: gcc-bugs

In a C++ template library (a matrix library with expression templates)
upgrading from g++-4.2 to g++-4.3 results in 3x slower programs.

Compiler versions:
g++-4.2 (GCC) 4.2.1 (Debian 4.2.1-5)
g++-4.3 (Debian 4.3-20070902-1) 4.3.0 20070902 (experimental) [trunk revision
128028]

$ g++-4.2 -O3 -DNDEBUG benchmark.cpp -o benchmark && time ./benchmark
1.0001 0 0
0 1.0001 0
0 0 1.0001

real    0m4.495s
user    0m4.416s
sys     0m0.003s

$ g++-4.3 -O3 -DNDEBUG benchmark.cpp -o benchmark && time ./benchmark
1.0001 0 0
0 1.0001 0
0 0 1.0001

real    0m15.891s
user    0m15.595s
sys     0m0.018s

I looked at the assembler code but I didn't see anything obvious (I don't
know much about assembler so I may have missed something.
I did notice that adding -fforce-addr changes the result for 4.3 but not
for 4.2.

$ g++-4.3 -O3 -DNDEBUG benchmark.cpp -fforce-addr -o benchmark && time
./benchmark
1.0001 0 0
0 1.0001 0
0 0 1.0001

real    0m8.779s
user    0m8.662s
sys     0m0.007s


-- 
           Summary: significantly slower results with 4.3 compared to 4.2
           Product: gcc
           Version: 4.3.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: michael dot olbrich at gmx dot net
 GCC build triplet: i486-linux-gnu
  GCC host triplet: i486-linux-gnu
GCC target triplet: i486-linux-gnu


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=33604


^ permalink raw reply	[flat|nested] 54+ messages in thread

end of thread, other threads:[~2009-02-01 10:45 UTC | newest]

Thread overview: 54+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-09-30 21:13 [Bug c++/33604] New: significantly slower results with 4.3 compared to 4.2 michael dot olbrich at gmx dot net
2007-09-30 21:15 ` [Bug c++/33604] " michael dot olbrich at gmx dot net
2007-10-01  9:47 ` rguenth at gcc dot gnu dot org
2007-10-01 21:03 ` [Bug c++/33604] [4.3 Regression] Revision 119502 causes " hjl at lucon dot org
2007-10-01 21:04 ` hjl at lucon dot org
2007-10-01 21:07   ` Daniel Berlin
2007-10-01 21:07 ` dberlin at dberlin dot org
2007-10-22  8:33 ` pinskia at gcc dot gnu dot org
2007-11-05  1:47 ` mmitchel at gcc dot gnu dot org
2007-11-06 17:10 ` bonzini at gnu dot org
2007-11-06 18:55 ` michael dot olbrich at gmx dot net
2007-11-06 20:08 ` bonzini at gnu dot org
2007-11-06 21:01 ` michael dot olbrich at gmx dot net
2007-11-06 21:23 ` bonzini at gnu dot org
2007-11-06 21:51 ` [Bug tree-optimization/33604] " rguenth at gcc dot gnu dot org
2007-11-07  6:03 ` paolo dot bonzini at lu dot unisi dot ch
2007-11-07 12:14 ` dnovillo at google dot com
2007-11-07 13:09 ` bonzini at gnu dot org
2007-11-07 13:10 ` bonzini at gnu dot org
2007-11-07 14:22 ` bonzini at gnu dot org
2007-11-07 16:03 ` bonzini at gnu dot org
2007-11-07 16:26 ` bonzini at gnu dot org
2007-11-07 16:36 ` bonzini at gnu dot org
2007-11-07 17:28 ` rguenth at gcc dot gnu dot org
2007-11-07 20:59 ` jacob at math dot jussieu dot fr
2007-11-08  6:12 ` paolo dot bonzini at lu dot unisi dot ch
2007-11-09 12:32 ` rguenth at gcc dot gnu dot org
2007-11-09 12:33 ` rguenth at gcc dot gnu dot org
2007-11-09 12:49 ` jacob at math dot jussieu dot fr
2007-11-09 12:52 ` rguenther at suse dot de
2007-11-09 12:56 ` jacob at math dot jussieu dot fr
2007-12-04 10:56 ` michael dot olbrich at gmx dot net
2007-12-04 11:18 ` bonzini at gnu dot org
2007-12-04 11:21 ` rguenth at gcc dot gnu dot org
2007-12-04 12:17 ` michael dot olbrich at gmx dot net
2007-12-04 12:38 ` paolo dot bonzini at lu dot unisi dot ch
2008-01-02 11:17 ` rguenth at gcc dot gnu dot org
2008-02-27 16:36 ` [Bug tree-optimization/33604] [4.3/4.4 Regression] Revision 119502 causes significantly slower results with 4.3/4.4 " jacob at math dot jussieu dot fr
2008-02-27 16:44 ` [Bug target/33604] " pinskia at gcc dot gnu dot org
2008-02-27 16:59 ` jacob at math dot jussieu dot fr
2008-02-27 17:06 ` bonzini at gnu dot org
2008-03-02 12:15 ` michael dot olbrich at gmx dot net
2008-03-02 12:27 ` bonzini at gnu dot org
2008-03-02 14:01 ` rguenth at gcc dot gnu dot org
2008-03-14 17:03 ` rguenth at gcc dot gnu dot org
2008-06-06 15:00 ` rguenth at gcc dot gnu dot org
2008-08-27 22:05 ` jsm28 at gcc dot gnu dot org
2008-08-29 13:14 ` amonakov at gcc dot gnu dot org
2008-12-25 18:14 ` pinskia at gcc dot gnu dot org
2008-12-30  1:50 ` Joey dot ye at intel dot com
2008-12-30  8:04 ` bonzini at gnu dot org
2009-01-24 10:28 ` rguenth at gcc dot gnu dot org
2009-02-01  8:14 ` bonzini at gnu dot org
2009-02-01 10:45 ` rguenth at gcc dot gnu dot org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).