Finding out where most of a http’s request time is spent can be done with curl too:
- create a curl output format file named time-fmt.txt with the following content:
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characterstime_namelookup: %{time_namelookup}\n time_connect: %{time_connect}\n time_appconnect: %{time_appconnect}\n time_pretransfer: %{time_pretransfer}\n time_redirect: %{time_redirect}\n time_starttransfer: %{time_starttransfer}\n ----------\n time_total: %{time_total}\n - Call curl like this:
curl -w "@time-fmt.txt" -s "https://google.com" -o NUL
The results of this will look like this: