Measuring web page speeds

Collection of scripts to measure what is making your page slow

LATENCY

Script for measuring latency for a web-page

#!/bin/bash

curl_format='{
"time_namelookup": %{time_namelookup},
"time_connect": %{time_connect},
"time_appconnect": %{time_appconnect},
"time_pretransfer": %{time_pretransfer},
"time_redirect": %{time_redirect},
"time_starttransfer": %{time_starttransfer},
"time_total": %{time_total}
}
'

curl -w "$curl_format" -D >(cat) -o /dev/null -s "$@"

Images

To download copy of index and generate list of links to images

# wget -k https://www.asbra.nu
# cat index.html | grep img | grep -Po 'src="\K.*?(?=")' | sed 's/\?.*//' > links.txt
# more links.txt

Leave a comment

Your email address will not be published. Required fields are marked *