Photo by Iván Díaz / Unsplash

Load Time in One Line

tiny tool Oct 23, 2025

A one-liner to get the load time for a page might be...

curl -w "%{time_total}\n" -o /dev/null -s workroom-productions.com

Unpack this into four parts – the first to produce information, two more to stop information, and the web address:

  1. -w "%{time_total}\n": This uses -w (or --write-out ) to pick out the total time taken to complete the request from the information about the transfer.
  2. -o /dev/null: This option throws away what curl has retrieved by redirecting the output to the bottomless pit  /dev/null .
  3. -s : Silent mode, which stops the progress meter from being output to the terminal.
  4. From here, of course. I've not specified page, nor scheme( i.e. https )

This one-liner needs you to know that curl captures this information. To my knowledge it's the only common tool which does. But curl isn't the only way to get a page – wget can, and lynx can, and you can use time to measure how long it takes. Indeed you could use time to measure how long the curl takes....

Here's a useful stackoverflow answer

Tags

James Lyndsay

Getting better at software testing. Singing in Bulgarian. Staying in. Going out. Listening. Talking. Writing. Making.