This is the mail archive of the cygwin@cygwin.com mailing list for the Cygwin 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]

C++ Compilers : Comparative Performance Measurement


      #######################################################
      # 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@connect.to
     http://mathforum.org/library/view/10978.html
     news://news.gmane.org/gmane.comp.lang.c++.perfometer
   ======================================================




--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/


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