#!/bin/sh
#
# simple shell speed test
# $Id: speed-test,v 1.1 2000/05/07 11:47:40 malekith Exp $
#

echo > /tmp/speed-test.$$
for i in 1 2 3 4 5 6 7 8 9 ; do
echo '
$sh -c "exit" ; $sh -c "exit" ; $sh -c "exit" ; $sh -c "exit" ;
$sh -c "exit" ; $sh -c "exit" ; $sh -c "exit" ; $sh -c "exit" ;
$sh -c "exit" ; $sh -c "exit" ; $sh -c "exit" ; $sh -c "exit" ;
' >> /tmp/speed-test.$$
done

for f in /bin/ash /bin/ksh /bin/zsh /bin/bash ../trash ; do
	echo $f:
	time env sh=$f $f /tmp/speed-test.$$
done
