This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
C++ performance
- To: <gcc at gcc dot gnu dot org>
- Subject: C++ performance
- From: Burkhard Militzer <militzer at llnl dot gov>
- Date: Tue, 3 Jul 2001 15:41:25 -0700 (PDT)
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