Skip to content

Instantly share code, notes, and snippets.

@anton-yurchenko
Created March 21, 2022 21:01
Show Gist options
  • Save anton-yurchenko/7d004710c891f11c500a523912ce30aa to your computer and use it in GitHub Desktop.
Save anton-yurchenko/7d004710c891f11c500a523912ce30aa to your computer and use it in GitHub Desktop.
Simple perfomance testing using curl
  1. Create a format.txt file with the following content:
time_namelookup:      %{time_namelookup}s\n 
time_connect:         %{time_connect}s\n
time_appconnect:      %{time_appconnect}s\n 
time_pretransfer:     %{time_pretransfer}s\n
time_redirect:        %{time_redirect}s\n 
time_starttransfer:   %{time_starttransfer}s\n
 ----------\n 
time_total:           %{time_total}s\n
  1. Test the endpoint with the following command: curl -L -w "@format.txt" -o tmp -s http://google.com/

Copied from https://speedtestdemon.com/a-guide-to-curls-performance-metrics-how-to-analyze-a-speed-test-result/

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