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

4

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 melga.com 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.

    
asked by anonymous 29.04.2016 / 16:32

1 answer

2

Using curl :

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

Using time and wget :

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

I hope it helps!

    
07.05.2016 / 02:52