added fetch compressed for curl
This commit is contained in:
parent
9b08a8180e
commit
2fcb173a2c
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in New Issue