harmony-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Tanuj Mathur <tanujmat...@gmail.com>
Subject Re: C compilers comparison: MSVC vs GCC vs DevCpp
Date Mon, 17 Oct 2005 13:00:34 GMT
Hi Enrico,
  For what it's worth, here is the data you wanted  :)
              OS: Windows XP Prof. with SP2
 Processor: Intel P4 3 GHz with HT
           RAM: 512 MB, ~155 MB free

Tested against the code supplied in your earlier mail.

Compilers Tested: 1. MingW with GCC 3.4.2
                                   2. MS Visual C++ 2003 (7.1)
                                   3. MS Visual C++ 2005 (8.0) BETA

                                     MingW         MSVC7.1      MSVC8.0
Default                         3.5310          3.1090          3.0930
Maximize Speed        0.1560          0.0000          0.0000
                                       [-O3]               [\O2]      
       [\O2]

All the tests were run 5 times, and the lowest execution time was noted.
Hope this helps :)
Tanuj


On 10/17/05, Enrico Migliore <enrico.migliore@fatti.com> wrote:
>
> >Hi,
> >  I can confirm Jerome's results. I tried out the test with 3
> >different optimization options (Optimize for size, for speed, and
> >'maximum optimizations') for the MSVC 7.1 (2003) compiler. In all the
> >cases, the running time was 0 seconds. When I compiled and ran the
> >code with no optimizations, I got a running time of 3.1090 seconds.
> >  For a more comprehensive test of ICC, GCC and MSCV, take a look at
> >the following page:
> >   - Performance Comparison of Java/.NET Runtimes (Oct 2004)
> >     (http://www.shudo.net/jit/perf/)
> >     Found the link on the Harmony wiki,  :)  under the JVM Benchmarks
> >section (http://wiki.apache.org/harmony/JVM_Benchmarks).
> >
> >  The test pits GCC 3.4.2 against ICC 8.1 and MSVC 7.1. So maybe we
> >should re-run the tests in two months, when we have MSVC 8 to test
> >against GCC 4.0.2 and ICC 9. ;)
> >
> >Regards,
> >Tanuj
> >
> >
> >
> Hi Tanuj,
>
>     the execution speed depends of course on the CPU clock, therefore I
> think you should
>     test also GCC on the same architecture where you have MSVC 7.1
>
>     The CPU clock of the PC where I carried out the test is 667 MHz.
>
> regards,
>  Enrico
>
>

Mime
View raw message