From fdb2735f0b3620c63ded1a7f73180539b94423ca Mon Sep 17 00:00:00 2001 From: fsgqa Date: Mon, 11 Nov 2002 02:42:14 +0000 Subject: [PATCH] unzip the tarfile in the tar measure - too much wasted space otehrwise. --- run.tar | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/run.tar b/run.tar index b6f455b8..3f797195 100755 --- a/run.tar +++ b/run.tar @@ -3,7 +3,7 @@ # Produces a .tar file (if one doesn't exist as $TARFILE), then # times how long it takes to untar it onto the current directory. # -TARFILE=${TARFILE:=/var/tmp/bench.tar} +TARFILE=${TARFILE:=/var/tmp/bench.tar.gz} barf() { @@ -15,7 +15,7 @@ new_tar() { source="bin sbin lib" if [ ! -f $TARFILE ]; then - ( cd / && tar cf $TARFILE $source ) || barf "tar c failed" + ( cd / && tar czf $TARFILE $source ) || barf "tar cz failed" fi } @@ -24,7 +24,7 @@ run_tar() # %U=user %S=system %E=elapsed mkdir ./tar || exit 1 size=`ls -lh $TARFILE | awk '{print $5}'` - time=`/usr/bin/time -f '%U,%S,%E' tar xf $TARFILE 2>&1` + time=`/usr/bin/time -f '%U,%S,%E' tar xzf $TARFILE 2>&1` status=$? cd .. rm -fr ./tar -- 2.30.2