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 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.
Answer :
Using curl
:
$ curl -so /dev/null -w '%{time_total} segsn' http://melga.com.br/
Using time
and wget
:
$ time wget -q -o /dev/null http://melga.com.br/
I hope it helps!