Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

get pageload time using command line - linux

I am stuck with a problem. I have list of 10 URL. I need to calculate the page load time.

I am presently using curl for getting the page load time:

time curl www.growingcraft.com

Second method:

wget www.growingcraft.com

The problem is that, this gives me the time taken to download the page, but :

  1. Does this file also includes the Javascript, css and images time?
  2. What is there are some external reference to some images (as in this case). How to calculate the time taken to load those images?

Is there any other way I can calculate page load time in Linux which will be more effective/accurate?

like image 745
Ankit Agarwal Avatar asked Dec 19 '22 10:12

Ankit Agarwal


1 Answers

Try this:

time wget -pq --no-cache --delete-after www.growingcraft.com 

-p makes it download all the resources (images, scripts, etc.)

-q makes it quiet.

The other options should be self-explanatory.

like image 83
Dagg Nabbit Avatar answered Jan 02 '23 05:01

Dagg Nabbit