-
-
Save joside/11db2dbd2bc41454914ad72d3e280d91 to your computer and use it in GitHub Desktop.
Revisions
-
sandeepraju created this gist
Jul 20, 2016 .There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,12 @@ #!/bin/bash # file: ttfb.sh # curl command to check the time to first byte # ** usage ** # 1. ./ttfb.sh "https://google.com" # 2. seq 10 | xargs -Iz ./ttfb.sh "https://google.com" curl -o /dev/null \ -H 'Cache-Control: no-cache' \ -s \ -w "Connect: %{time_connect} TTFB: %{time_starttransfer} Total time: %{time_total} \n" \ $1