/ Published in: Bash

adkatrit$ ./speedcheck.sh google.com
google.com
DNS 0.027s conn 0.083s time 0.301s
Speed 26350.000bps Size 7932bytes
google.com
DNS 0.027s conn 0.083s time 0.301s
Speed 26350.000bps Size 7932bytes
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
#!/bin/sh 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
Comments
