5 ms·
What are speed tests that work from the command line?
by jedisct1 3y ago
What are speed tests that work from the command line?
- uncertainrhymes 3y agoIf you have easy access to an arbitrarily large file (or an online random file generator) curl has timing variables that can be exposed via the -w flag. e.g. Create a format file named curltime.txt containing: time_namelookup: %{time_namelookup}s\n time_connect: %{time_connect}s\n time_redirect: %{time_redirect}s\n time_starttransfer: %{time_starttransfer}s\n ----------\n time_total: %{time_total}s\n then curl -svo /dev/null -w "@curltime.txt" https://example.com/my_arbitrary_file https://example.com/my_arbitrary_file Would result in something like: time_namelookup: 0.048205s time_connect: 0.079001s time_redirect: 0.000000s time_starttransfer: 0.377603s ---------- time_total: 0.412150s
- jedisct1 3y agoThat doesn't provide any information about jitter, latency, packet loss, DNS, location, etc.