Posted By

adkatrit on 02/21/10


Tagged

speed audit


Versions (?)

Speed Check w/ dns throughput, load time, and page size


 / Published in: Bash
 

adkatrit$ ./speedcheck.sh google.com google.com DNS 0.027s conn 0.083s time 0.301s Speed 26350.000bps Size 7932bytes

  1. #!/bin/sh
  2. URL="$1";curl -L --w "$URL\nDNS %{time_namelookup}s conn %{time_connect}s time %{time_total}s\nSpeed %{speed_download}bps Size %{size_download}bytes\n" -o/dev/null -s $URL

Report this snippet  

You need to login to post a comment.