added fetch compressed for curl

This commit is contained in:
Peter Hedenskog 2012-12-31 06:46:04 +01:00
parent 9b08a8180e
commit 2fcb173a2c
1 changed files with 1 additions and 1 deletions

View File

@ -71,7 +71,7 @@ analyze() {
sed -n '1,/<\/results>/p' $REPORT_DATA_PAGES_DIR/$pagefilename-bup > $REPORT_DATA_PAGES_DIR/$pagefilename.xml || exit 1
# ttfb
for i in `seq $TIMES_TTFB`; do curl $USER_AGENT_CURL -o /dev/null -w "%{time_starttransfer}\n" -s $url ; done > "$REPORT_DATA_PAGES_DIR/$pagefilename.ttfb"
for i in `seq $TIMES_TTFB`; do curl $USER_AGENT_CURL --compressed -o /dev/null -w "%{time_starttransfer}\n" -s $url ; done > "$REPORT_DATA_PAGES_DIR/$pagefilename.ttfb"
cat "$REPORT_DATA_PAGES_DIR/$pagefilename.ttfb" | head -$TIMES_TTFB | tr " " "\t" | cut -f13 |awk 'ttt += $1 {print ttt/NR}'| tail -1 > "$REPORT_DATA_PAGES_DIR/$pagefilename.ttfb-1"
read -r TTFB < $REPORT_DATA_PAGES_DIR/$pagefilename.ttfb-1