linux mesuare request time http

Shell
curl -w "\n\n%{time_connect} + %{time_starttransfer} = %{time_total}\n" www.google.com 

Source

Also in Shell: