This is the mail archive of the gcc@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]

C++ performance


Hello,

I installed various versions of your GNU g++ compile on my Pentium IV and
compared the performance:

Test A1 "open_paths" (cd open_path; /bin/time ~/cupid/cupid open) [small mem]
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
(Pentium 4 1.7Ghz)     g++ -O3 (2.95-2 ***  )  8.62 sec.
(Pentium 4 1.7Ghz)     g++ -O3 (2.95-3)       10.94 sec.
(Pentium 4 1.7Ghz)     g++ -O3 (3.01)         15.09 sec.

Test A2 "open_paths" (cd open_path; /bin/time ~/cupid/cupid open2) [small mem]
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
(Pentium 4 1.7Ghz)     g++ -O3 (2.95.2 ***)    85.44 sec.
(Pentium 4 1.7Ghz)     g++ -O3 (2.95.3)       107.79 sec.
(Pentium 4 1.7Ghz)     g++ -O3 (3.01)         144.87 sec.

(***) executable was compiled on Pentium 3.

The time to execute the 2 benchmarks (the results were all consistent)
seems to get worse with increasing version number. Is there anything that
can be done about it?

Furthermore, the compile time of version 3.01 is very long.

Thanks

Burkhard Militzer


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