How to calculate the download time of a website using wget?

Asked

Viewed 177 times

4

I am working on a project where I need to calculate the loading time of a webpage for optimization purposes.

I’m using this command:

$ time wget -H -p --delete-after melga.com.br 2&> /dev/null

But I’m not sure if the access time on the disk is interfering with the measurement.

If you have a more efficient way of calculating also helps.

1 answer

2

Using the curl:

$ curl -so /dev/null -w '%{time_total} segs\n' http://melga.com.br/

Using the time and wget:

$ time wget -q -o /dev/null http://melga.com.br/

I hope it helps!

Browser other questions tagged

You are not signed in. Login or sign up in order to post.