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


/ Published in: Bash
Save to your folder(s)

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


Copy this code and paste it in your HTML
  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


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.