Test Gzip times with CURL


/ Published in: Bash
Save to your folder(s)



Copy this code and paste it in your HTML
  1. # Time with Gzip:
  2. curl http://www.example.com --silent -H "Accept-Encoding: gzip,deflate" --write-out "time_total=%{time_total}\n" --output /dev/null
  3.  
  4. #Time without Gzip:
  5. curl http://www.example.com --silent --write-out "time_total=%{time_total}\n" --output /dev/null

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.