curl check latency code example
Example: linux mesuare request time http
curl -w "\n\n%{time_connect} + %{time_starttransfer} = %{time_total}\n" www.google.com
curl -w "\n\n%{time_connect} + %{time_starttransfer} = %{time_total}\n" www.google.com