This is the mail archive of the
cygwin
mailing list for the Cygwin project.
RE: Simple bash script is slow to execute - appears to be time spent starting commands like ls
- From: "David Tazartes" <davidt81 at earthlink dot net>
- To: "'Thrall, Bryan'" <bryan dot thrall at flightsafety dot com>, <cygwin at cygwin dot com>
- Date: Wed, 2 Sep 2009 15:06:15 -0400
- Subject: RE: Simple bash script is slow to execute - appears to be time spent starting commands like ls
Bryan Thrall wrote:
You're right about true being built-in, but we still don't know from
your examples whether the problem is from forking or from IO. Try
replacing 'true' in Jeremy's loop with '/bin/true'. Comparison between
the two should give us an idea of the forking cost, without IO getting
in the way.
-----
I had to reduce to 100 iterations.
On Linux:
real 0m0.448s
user 0m0.244s
sys 0m0.220s
On Cygwin:
real 0m48.411s
user 0m15.005s
sys 0m18.520s
So basically a factor of 100... again points to forking or Vista process
start slowness.
--
Problem reports: http://cygwin.com/problems.html
FAQ: http://cygwin.com/faq/
Documentation: http://cygwin.com/docs.html
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple