delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2003/11/03/13:45:45

X-Authentication-Warning: delorie.com: mail set sender to djgpp-bounces using -f
From: "Alex Vinokur" <alexvn AT bigfoot DOT com>
Newsgroups: comp.os.msdos.djgpp
Subject: Re: C++ Compilers : Comparative Performance Testsuite
Date: Mon, 3 Nov 2003 20:33:16 +0200
Lines: 158
Message-ID: <bo671c$17d0d6$1@ID-79865.news.uni-berlin.de>
References: <bnr7f0$14rul1$1 AT ID-79865 DOT news DOT uni-berlin DOT de> <200310301542 DOT h9UFgN87021040 AT envy DOT delorie DOT com>
NNTP-Posting-Host: pop09-2ras2-p9.barak.net.il (212.150.105.9)
X-Trace: news.uni-berlin.de 1067884400 41320870 212.150.105.9 (16 [79865])
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1106
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

"DJ Delorie" <dj AT delorie DOT com> wrote in message news:200310301542 DOT h9UFgN87021040 AT envy DOT delorie DOT com...
>
> > | g++ 3.3.1 (Cygwin)   | No  | 0.45 : 0.41 | 1.86 : 1.81 |  6.63 :  6.58 |
> > | gpp 3.2.1 (DJGPP)    | No  | 0.37 : 0.24 | 1.99 : 1.92 | 10.53 : 10.42 |
>
> Please use g++ 3.3.1 for DJGPP.  There is a vast difference between
> the 3.2 and 3.3 series of gcc, even on the same platform, so there's
> no point in wondering about these results - you've changed too many
> things between the two cases to make any sense of the results.

g++ 3.3.2 for DJGPP has been used.

Here is a new report.


      #######################################################
      # C++ Compilers : Comparative Performance Measurement #
      #######################################################
      Testsuite   : Computing very long Fibonacci numbers
      Source      : http://groups.google.com/groups?selm=bo4nls%2417vfq6%241%40ID-79865.news.uni-berlin.de

      Metrics
         * Real time - Elapsed (wall clock) time (seconds)
         * CPU time  - Processor time used (seconds)

      Environment
         * Windows 2000 Professional Ver 5.0 Build 2195 Service Pack 2
         * Intel(R) Celeron(R) CPU 1.70 GHz
         * GNU time 1.7 (to get the real time)


Report-1.1
==============================================================================
|                    | Opt.  |   Fib-10000   |   Fib-25000   |   Fib-50000   |
|      Compiler      | Level |---------------|---------------|---------------|
|                    |       |  Real :  CPU  |  Real :  CPU  |  Real :  CPU  |
|============================================================================|
|                              GNU gcc compiler                              |
|----------------------------------------------------------------------------|
|                    |       |       :       |       :       |       :       |
| g++ 3.3.1 (Cygwin) | None  |  0.49 :  0.42 |  1.90 :  1.84 |  6.91 :  6.79 |
|                    |  O1   |  0.32 :  0.24 |  1.07 :  1.00 |  3.93 :  3.87 |
|                    |  O2   |  0.31 :  0.23 |  1.05 :  0.98 |  3.88 :  3.80 |
|                    |  O3   |  0.31 :  0.24 |  1.05 :  0.99 |  3.88 :  3.79 |
|                    |       |       :       |       :       |       :       |
| g++ 3.3.1 (Cygwin) | None  |  0.39 :  0.30 |  1.64 :  1.58 |  5.81 :  5.75 |
| Mingw32 Interface  |  O1   |  0.24 :  0.16 |  0.91 :  0.85 |  3.10 :  3.05 |
|                    |  O2   |  0.23 :  0.17 |  0.89 :  0.84 |  3.03 :  2.98 |
|                    |  O3   |  0.26 :  0.16 |  0.90 :  0.84 |  3.04 :  2.99 |
|                    |       |       :       |       :       |       :       |
| gpp 3.3.2 (DJGPP)  | None  |  0.48 :  0.31 |  2.07 :  1.92 | 11.17 : 11.01 |
|                    |  O1   |  0.24 :  0.13 |  1.17 :  1.06 |  7.86 :  7.75 |
|                    |  O2   |  0.25 :  0.13 |  1.16 :  1.04 |  7.74 :  7.58 |
|                    |  O3   |  0.25 :  0.13 |  1.19 :  1.10 |  7.90 :  7.80 |
|                    |       |       :       |       :       |       :       |
|----------------------------------------------------------------------------|
|                       GNU gcc compiler, STLport 4.5.3                      |
|                  Proposed and supported by Gerrit P. Haase                 |
|----------------------------------------------------------------------------|
| g++ 3.3.1 (Cygwin) | None  |  0.45 :  0.36 |  1.44 :  1.37 |  5.16 :  5.06 |
| STLport 4.5.3      |  O1   |  0.32 :  0.21 |  0.95 :  0.89 |  3.47 :  3.39 |
|                    |  O2   |  0.29 :  0.21 |  0.98 :  0.92 |  3.58 :  3.49 |
|                    |  O3   |  0.30 :  0.22 |  1.01 :  0.95 |  3.67 :  3.60 |
|                    |       |       :       |       :       |       :       |
|----------------------------------------------------------------------------|
|                 Digital Mars C/C++ Compiler, STLport 4.5.3                 |
|----------------------------------------------------------------------------|
| DMC Version 8.35n  | None  |  0.28 :  0.16 |  0.89 :  0.81 |  3.87 :  3.80 |
| STLport 4.5.3      | Speed |  0.25 :  0.14 |  0.78 :  0.70 |  3.44 :  3.37 |
|                    | Space |  0.23 :  0.14 |  0.75 :  0.68 |  3.41 :  3.31 |
|                    |       |       :       |       :       |       :       |
==============================================================================




Compilation
===========

   * g++ 3.3.1, Cygwin
     -----------------
     g++ -W -Wall foo.cpp [Optimize Option] -o foo.exe


   * g++ 3.3.1, Cygwin, Mingw32 interface
     ------------------------------------
     g++ -W -Wall -mno-cygwin foo.cpp [Optimize Option] -o foo.exe


   * g++ 3.3.1, Cygwin, STLport 4.5.3
     --------------------------------
     g++ -W -Wall foo.cpp -I/STLport-4.5.3/stlport /lib/libstlport_cygwin.a [Optimize Option] -o foo.exe


   * gpp 3.3.2, DJGPP
     ----------------
     gpp -W -Wall foo.cpp [Optimize Option] -o foo.exe


   * Digital Mars C/C++ 8.35n, STLport 4.5.3
     ---------------------------------------
     dmc [Optimize Option] -I. -IC:/dm/stlport/stlport foo.cpp -ofoo.exe




The names of DLL files on which the programs depend
===================================================

   * g++ 3.3.1, Cygwin
     -----------------
     C:\cygwin\bin\cygwin1.dll
       C:\WINNT\System32\KERNEL32.dll
         C:\WINNT\System32\NTDLL.DLL


   * g++ 3.3.1, Cygwin, Mingw32 interface
     ------------------------------------
      C:\WINNT\System32\msvcrt.dll
        C:\WINNT\System32\KERNEL32.dll
          C:\WINNT\System32\NTDLL.DLL


   * g++ 3.3.1, Cygwin, STLport 4.5.3
     --------------------------------
     C:\cygwin\bin\cygwin1.dll
       C:\WINNT\System32\KERNEL32.dll
         C:\WINNT\System32\NTDLL.DLL


   * gpp 3.3.2, DJGPP
     ----------------
     DJGPP doesn't support dynamic linking.


   * Digital Mars C/C++ 8.35n, STLport 4.5.3
     ---------------------------------------
     C:\WINNT\System32\KERNEL32.DLL
       C:\WINNT\System32\NTDLL.DLL
     C:\WINNT\System32\USER32.DLL
       C:\WINNT\System32\GDI32.DLL



--
   ======================================================
   Alex Vinokur
     mailto:alexvn AT connect DOT to
     http://mathforum.org/library/view/10978.html
     news://news.gmane.org/gmane.comp.lang.c++.perfometer
   ======================================================



>


- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019