Created
September 2, 2023 07:35
-
-
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
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 characters
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