Skip to content

Instantly share code, notes, and snippets.

@mauricios
Last active February 17, 2022 18:21
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save mauricios/bc5cefc9d6e7071e9c1e0433385a6241 to your computer and use it in GitHub Desktop.
Save mauricios/bc5cefc9d6e7071e9c1e0433385a6241 to your computer and use it in GitHub Desktop.
CURL format file to summarize loading times results of a page
Content Type: %{content_type}\n
HTTP Code: %{http_code}\n
HTTP Connect: %{http_connect}\n
Number Connects: %{num_connects}\n
Number Redirects: %{num_redirects}\n
Redirect URL: %{redirect_url}\n
Size Download: %{size_download}\n
Average speed download: %{speed_download}\n
Size Upload: %{size_upload}\n
SSL Verify: %{ssl_verify_result}\n
Time Handshake: %{time_appconnect}\n
Time Connect: %{time_connect}\n
Name Lookup Time: %{time_namelookup}\n
Pretransfer: %{time_pretransfer}\n
Time Redirect: %{time_redirect}\n
Time Start Transfer (TTFB): %{time_starttransfer}\n
--------------\n
Total time: %{time_total}\n
\n
Effective URL: %{url_effective}\n
@mauricios
Copy link
Author

Test loading times with using using the file above in this command:
curl -w "@curl_time_format.txt" -o /dev/null -s "https://<hostname>/<url>"

@mauricios
Copy link
Author

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment