libtool-patches
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH] libtool: minimise forks per invocation on cygwin and mingw.


From: Peter O'Gorman
Subject: Re: [PATCH] libtool: minimise forks per invocation on cygwin and mingw.
Date: Thu, 08 Dec 2011 12:27:57 -0600
User-agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.22) Gecko/20110906 Fedora/3.1.14-1.fc14 Thunderbird/3.1.14

On 12/08/2011 09:29 AM, Charles Wilson wrote:
Has anybody done a comparison between:

cygwin + libtool + dash/posh (e.g. small, fast shell -- without XSI)

cygwin + libtool + bash (e.g. big bloated slow shell -- with XSI)

to see which is better?


Because I installed mingw32 yesterday on my rarely used windows vista home basic VM, I thought I'd do my compile an empty file 100 times test on it.

With todays git, bash:
time (for x in {1..100}; do lt_HAVE_XSI_OPS=yes lt_HAVE_PLUSEQ_OP=yes lt_HAVE_ARITH_OP=yes ./libtool --mode=compile --tag=CC gcc -c -o a.lo a.c; done)


real    0m58.766s
user    0m5.315s
sys     0m31.981s

real    0m54.413s
user    0m5.380s
sys     0m31.143s

With dash
time (for x in {1..100}; do lt_HAVE_XSI_OPS=yes lt_HAVE_PLUSEQ_OP=no lt_HAVE_ARITH_OP=yes dash ./libtool --mode=compile --tag=CC gcc -c -o a.lo a.c; done)

real    0m32.089s
user    0m1.657s
sys     0m9.330s

real    0m29.905s
user    0m1.637s
sys     0m9.125s

I think dash might be the winner.

Peter



reply via email to

[Prev in Thread] Current Thread [Next in Thread]