delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2005/06/13/00:04:11

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/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
Date: Mon, 13 Jun 2005 00:04:02 -0400
From: Christopher Faylor <cgf-no-personal-reply-please AT cygwin DOT com>
To: cygwin AT cygwin DOT com
Subject: Re: Making /bin/sh == bash. Has the time come?
Message-ID: <20050613040402.GA13318@trixie.casa.cgf.cx>
Reply-To: cygwin AT cygwin DOT com
References: <20050610150729 DOT GA13181 AT trixie DOT casa DOT cgf DOT cx> <20050610231343 DOT 6A12713C0A7 AT cgf DOT cx> <20050611003817 DOT GB1106 AT trixie DOT casa DOT cgf DOT cx> <d8egni$vd3$1 AT sea DOT gmane DOT org> <004701c56f79$1eb791c0$d119fea9 AT pcdahl4201> <d8iutd$nk2$1 AT sea DOT gmane DOT org>
Mime-Version: 1.0
In-Reply-To: <d8iutd$nk2$1@sea.gmane.org>
User-Agent: Mutt/1.5.8i

On Mon, Jun 13, 2005 at 05:45:47AM +0200, Krzysztof Duleba wrote:
>I've just rerun the tests.  This time I made sure in Task Manager that
>the right shell is used.
>
>$ cat bench.sh
>#!/bin/bash
>
>benchmark() {
>        package="$1"
>        shell="$2"
>
>        unset CONFIG_SHELL
>
>        if [ $shell != "bash" ]; then export CONFIG_SHELL="/bin/$shell";
>fi
>
>        echo "Configuring $package with $shell"
>
>        time "$package"/configure --prefix=/usr >"$package/confout.$shell"
>        echo
>}
>
>benchmark "netcat-0.7.1" "sh"
>benchmark "netcat-0.7.1" "bash"
>
>benchmark "mc-4.6.1-pre4" "sh"
>benchmark "mc-4.6.1-pre4" "bash"
>
>benchmark "octave-2.1.57" "sh"
>benchmark "octave-2.1.57" "bash"
>
>$ ./bench.sh
>Configuring netcat-0.7.1 with sh
>
>real    0m48.519s
>user    1m24.139s
>sys     0m23.826s
>
>Configuring netcat-0.7.1 with bash
>
>real    0m52.584s
>user    1m29.344s
>sys     0m29.698s
>
>Configuring mc-4.6.1-pre4 with sh
>
>real    1m55.170s
>user    3m25.148s
>sys     0m58.383s
>
>Configuring mc-4.6.1-pre4 with bash
>
>real    2m2.551s
>user    3m29.032s
>sys     1m7.058s
>
>Configuring octave-2.1.57 with sh
>
>real    2m22.899s
>user    3m59.346s
>sys     1m8.478s
>
>Configuring octave-2.1.57 with bash
>
>real    2m30.363s
>user    4m9.959s
>sys     1m23.563s

Thanks for running these.  Would you mind running the same tests after
doing this:

  mount -f -X -b c:/cygwin/bin /bin
  mount -f -X -b c:/cygwin/bin /usr/bin

replacing the 'c:' above, as appropriate.

cgf

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.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