delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2002/07/16/11:59:33

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
Message-ID: <023601c22ce2$48b5cbe0$a50aa8c0@pcse5>
From: "BiDuS" <bidus AT free DOT fr>
To: <cygwin AT cygwin DOT com>
Subject: RE: Cygwin is SLOW
Date: Tue, 16 Jul 2002 18:03:09 +0200
MIME-Version: 1.0
X-Priority: 3
X-MSMail-Priority: Normal
X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4522.1200

I've tried both slow and fast perl scripts on my machine (AMD XP1700, W2K)

If  test.file is on a local directory

$ perl slowchm.pl
113.4 chmods per sec
$ perl fastchm.pl
2923.6 chmods per sec

if test.file is on a mounted directory

$ perl slowchm.pl
51.9 chmods per sec
$ perl fastchm.pl
143 chmods per sec

Could anyone explain the performance ratio for both scripts ???

btw, on a "slow" linux p3-866
test.file being on a remote directory
$ perl slowchm.pl
187.8 chmods per sec
$ perl fastchm.pl
3096.8 chmods per sec

test.file being on a local directory
$ perl slowchm.pl
181.7 chmods per sec
$ perl fastchm.pl
263232.5 chmods per sec   (arf!)

I got a wider gap for small c program opening and closing about 650 files
It takes 0.750 s for local files and about 2 s for distant files
On the linux machine, it's just 0.1 s for distant files...

Is the _open() routine guilty ?
Is it linked to the unix AND dos path compatibility ?
Anyone as a hint to speed this up ?


--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

- Raw text -


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