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}
17 if [ ! -f $TARFILE ]; then
18 ( cd / && tar cf $TARFILE $source ) || barf "tar c failed"
24 # %U=user %S=system %E=elapsed
27 /usr/bin/time -f '%U,%S,%E' tar xf $TARFILE || exit 1
29 rm -fr ./tar || exit 1
33 echo "user,system,elapsed"