Skip to content

Instantly share code, notes, and snippets.

@ryanlelek
Created December 2, 2014 15:22
Show Gist options
  • Save ryanlelek/20b4a4e492e72521b7ef to your computer and use it in GitHub Desktop.
Save ryanlelek/20b4a4e492e72521b7ef to your computer and use it in GitHub Desktop.
Benchmark
#!/bin/bash
# Modified from http://www.shellhacks.com/en/Check-a-Website-Response-Time-from-the-Linux-Command-Line
curl -s -w '\nLookup:\t%{time_namelookup}\nConnect:\t%{time_connect}\nApp Connect:\t%{time_appconnect}\nRedirect:\t%{time_redirect}\nPretransfer:\t%{time_pretransfer}\nStarttransfer:\t%{time_starttransfer}\n\nTotal:\t%{time_total}\n' -o /dev/null {$1};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment