| www.delorie.com/archives/browse.cgi | search |
| 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 |
| To: | cygwin AT cygwin DOT com |
| From: | "Krzysztof Duleba" <krzysan AT skrzynka DOT pl> |
| Subject: | Re: Making /bin/sh == bash. Has the time come? |
| Date: | Mon, 13 Jun 2005 05:45:47 +0200 |
| Lines: | 74 |
| Message-ID: | <d8iutd$nk2$1@sea.gmane.org> |
| 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> |
| Mime-Version: | 1.0 |
| X-IsSubscribed: | yes |
Thorsten Dahlheimer wrote:
> Are you sure you didn't actually measure bash's performance twice?
I've just rerun the tests. This time I made sure in Task Manager that the
right shell is used.
Regards
Krzysztof Duleba
$ 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
--
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/
| webmaster | delorie software privacy |
| Copyright © 2019 by DJ Delorie | Updated Jul 2019 |