On Monday 24 May 2010 7:59:12 pm Tilman Sauerbeck wrote:
Hi, I made /bin/sh point to dash instead of bash and measure how this change speeds up a few randomly picked configure scripts.
The speedup achieved is:
pkg-config: 2% libarchive: 3% llvm: 7% gcc: 24% coreutils: 17% openssh: 9% htop: 13%
Method used:
cd /some/tmpfs bsdtar xf /the/package.tar.gz time ./configure # switch /bin/sh symlink rm -rf the-extracted-package bsdtar xf /the/package.tar.gz time ./configure
I've always thought that having sh point to bash could be a waste of resources (cpu and/or memory), but never cared enough to quantify it, although for some time I was using tcsh instead of bash. In my experience there are too many shellscripts out there that start with #!/bin/sh and then expect bash features. I think your findings might be affected by caching, did you take that into consideration? Alan