Computer Chess Club Archives


Search

Terms

Messages

Subject: Re: test results comparing cygwin, msvc binaries

Author: Dan Newman

Date: 21:01:33 02/23/01

Go up one level in this thread


On February 23, 2001 at 14:24:34, Dann Corbit wrote:

>On February 23, 2001 at 13:46:07, James Swafford wrote:
>
>>Below are a couple quick tests I ran to compare executable speeds of one
>>of my programs using MSVC 6 pro and the latest Cygwin.
>>
>>The tests were run on a Dell laptop running WinNT, 750 Mhz PIII, 512 mb ram.
>>
>>The first test was the WAC suite (first 100 problems) run at 10 sec/problem.
>>The summary reports below show the avg node counts at the bottom.
>>
>>The second test is an internal bench command that runs the nolot test
>>suite at 30 secs/problem, then computes avg nps.  The function is
>>attached below.  Disregard the comparisons to the K6-2 and Athlon -
>>I don't remember which compiler I used when I came up with those numbers,
>>and the program has changed a bit since.
>>
>>Here's the summary:
>>Test 1 (WAC 1-100 @ 10 sec.)
>>cygwin:
>>  interior: 398622; frontier: 2429828 (node counts)
>>msvc 6:
>>  interior: 384231; frontier: 2331737
>>
>>Test 2 (nolot bench, 30 sec./problem)
>>cygwin:
>>   mean node rate for benchmark -> 308177 n/s
>>msvc 6:
>>   mean node rate for benchmark -> 293639 n/s
>
>I have never seen any program except a string operation test where GCC was
>faster.  Is this result from Galahad or from another program?
>
>Have you tried the Intel compiler?  You can try a free download for 30 days.
>Since you already have MS VC++ professional, it drops right into the IDE (in
>fact MS VC++ Professional or Enterprise is required).
>
>Exactly what version of GCC were you using?  I have gcc-2.95.2-6 and it is
>usually 20-50% slower than MS VC++ and even worse when pitted with Intel.


Heh.  I bought the Intel compiler (version 5.0) on the basis of reports of
better performance than MSVC, but on my program I get a 24% hit instead...
I imagine what may happen is that if you optimize for one compiler, you
end up doing worse on another.  Generally I've found MSVC to be 20-30%
better than anything else I've tried (Watcom, gcc, Intel).

(It could be that I just haven't found the right switches yet.)

The Intel compiler did find a few minor "bugs" that have been slipping past
MSVC--got 4 warnings that really needed fixing--so it's not a total loss :).

-Dan.



This page took 0 seconds to execute

Last modified: Thu, 15 Apr 21 08:11:13 -0700

Current Computer Chess Club Forums at Talkchess. This site by Sean Mintz.