Photo by Iván Díaz / Unsplash

Load Time in One Line

tiny tool Oct 23, 2025 (Oct 23, 2025) Loading...

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

Member reactions

Reactions are loading...

Sign in to leave reactions on posts

Tags

Comments

Sign in or become a Workroom Productions member to read and leave comments.

James Lyndsay

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

Great! You've successfully subscribed.
Great! Next, complete checkout for full access.
Welcome back! You've successfully signed in.
Success! Your account is fully activated, you now have access to all content.