Mailing-List: contact cygwin-help@sourceware.cygnus.com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe@sources.redhat.com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin@sources.redhat.com>
List-Help: <mailto:cygwin-help@sources.redhat.com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner@sources.redhat.com
Delivered-To: mailing list cygwin@sources.redhat.com
Message-ID: <3A89A6C2.5A01AD7D@lineo.com>
Date: Tue, 13 Feb 2001 13:27:30 -0800
From: jfaith@lineo.com
X-Accept-Language: en,ja
MIME-Version: 1.0
To: "Larry Hall (RFK Partners, Inc)" <lhall@rfk.com>, cygwin@cygwin.com
Subject: Re: Optimizing away "ReadFile" calls when Make calls stat()
References: <20010213195439.17755.qmail@lizard.curl.com> 
	 <20010213183634.1435.qmail@lizard.curl.com> <3A89867C.395FC4E3@yahoo.com> 
	 <20010213191450.15506.qmail@lizard.curl.com> <3A898FA0.6895B5CA@yahoo.com> 
	 <20010213195439.17755.qmail@lizard.curl.com> <4.3.1.2.20010213154412.04990ba0@pop.ma.ultranet.com>
X-MIMETrack: Serialize by Router on lnwestlake/Lineo(Release 5.0.5 |September 22, 2000) at
 02/13/2001 03:34:24 PM,
	Serialize complete at 02/13/2001 03:34:24 PM
Content-Transfer-Encoding: 7bit
Content-Type: text/plain; charset=us-ascii


"Larry Hall (RFK Partners, Inc)" wrote:

> At 03:25 PM 2/13/2001, DJ Delorie wrote:
> > > Win32 is slower, but not THAT much slower.
> >
> >Actually, it is.  I did some benchmarks using the native Win32 API
> >directly, and Linux is way faster.
>
> Any chance that you have a pointer to the results of such a test?  Just
> curious.

Althought not related to the performance of stat() ... to get a feel for
where time was being spent during a make on Cygwin, I did an experiment a
while ago to compare process launching on Linux versus Win32.  The test
script just did "make --version > /dev/null" one thousand times.  This is
how long it took, all done on the same hardware:

Linux: 3 sec.
VMWare running Linux: 9 sec.
DOS (batch file) 18 sec.
Cygwin: 30 sec.

One thing which can help build performace is to pass several C files at
once to gcc, if it's possible to work it into your build procedure.

--
John Faith
Lineo



--
Want to unsubscribe from this list?
Check out: http://cygwin.com/ml/#unsubscribe-simple

