3 # Produces a .tar file (if one doesn't exist as $TARFILE), then
4 # times how long it takes to untar it onto the current directory.
6 TARFILE=${TARFILE:=/var/tmp/bench.tar}
16 source="/bin /sbin /lib /dev"
18 tar cf $1 $source || barf "tar c failed"
24 # %U=user %S=system %E=elapsed
26 /usr/bin/time -f '%U,%S,%E' tar xf $1 ./tar || exit 1
27 rm -fr ./tar || exit 1
31 echo "user,system,elapsed"