Skip to content

Instantly share code, notes, and snippets.

@iMerica
Created April 18, 2019 21:45
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save iMerica/78a801d885964dd753e127deb0681536 to your computer and use it in GitHub Desktop.
Save iMerica/78a801d885964dd753e127deb0681536 to your computer and use it in GitHub Desktop.
Quick and dirty Performance Metrics using only Curl
#!/usr/bin/env bash
# I found this in my ZSH profile and I forgot where I got it from. If you wrote it, Thanks!
curl -so /dev/null -w " namelookup: %{time_namelookup}s\n connect: %{time_connect}s\n appconnect: %{time_appconnect}s\n pretransfer: %{time_pretransfer}s\n redirect: %{time_redirect}s\nstarttransfer: %{time_starttransfer}s\n-------------------------\n total: %{time_total}s\n" "$@"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment