40% slowdown with dynamic /bin/sh

boyd, rounin boyd at insultant.net
Tue Nov 25 02:55:29 PST 2003


> That's a more interesting result and more comparable to Drew's test.
> It doesn't necessarily invalidate Drew's results - /bin/sh has 3
> shared libraries and is locale-aware whereas /usr/bin/test has 1
> shared library and doesn't rely on the locale.  /usr/bin/true is also
> significantly smaller (implying less relocation requirements).
> /bin/sh could reasonably be expected to take longer to startup then
> /usr/bin/test.

another can of worms.  various shells have test, true and false built in.
so, you have to be very careful in writing a shell comparision benchmark.

to complicate matters, ksh (statically linked) has _always_ been faster than sh.



More information about the freebsd-current mailing list