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

Posted on

Question :

I’m 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 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 to calculate also help.


Answer :

Using curl :

$ curl -so /dev/null -w '%{time_total} segsn'

Using time and wget :

$ time wget -q -o /dev/null

I hope it helps!


Leave a Reply

Your email address will not be published. Required fields are marked *