Skip to content

Instantly share code, notes, and snippets.

@o-az
Created September 2, 2023 07:35
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 o-az/8f1b6328ec6f43b5897692d3d49d030d to your computer and use it in GitHub Desktop.
Save o-az/8f1b6328ec6f43b5897692d3d49d030d to your computer and use it in GitHub Desktop.
I have this in my ~/.zshrc and can run 'perf <url>' to get request performance
function perf {:
curl --silent \
--url "$1" \
--output /dev/null \
--write-out "\n%{time_total} sec\n%{size_download} bytes\n"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment