Alan [2010-05-24 20:55]:
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
[...] In my experience there are too many shellscripts out there that start with #!/bin/sh and then expect bash features.
They can probably be fixed :p
I think your findings might be affected by caching, did you take that into consideration?
I removed the extracted directory each time before doing another configure run. That should have taken care of caching effects I think. Regards, Tilman -- A: Because it messes up the order in which people normally read text. Q: Why is top-posting such a bad thing? A: Top-posting. Q: What is the most annoying thing on usenet and in e-mail?