4 echo "Usage: $0 http://www.example.com/"
10 time wget $url -O /tmp/foo
12 time wget --header="Accept-Encoding: gzip" $url -O /tmp/foo.gz
15 orig_size=`ls -al /tmp/foo | awk '{ print $5 }'`
16 comp_size=`ls -al /tmp/foo.gz | awk '{ print $5 }'`
18 if [ $comp_size -lt $orig_size ] ; then
19 echo "OK $comp_size < $orig_size";
21 echo "ERROR: no visible compression benefits"
24 #ls -al /tmp/foo /tmp/foo.gz