Skip to content

Instantly share code, notes, and snippets.

@jsok
Last active October 19, 2015 10:39
Show Gist options
  • Save jsok/c6768121aa85e1cf74b0 to your computer and use it in GitHub Desktop.
Save jsok/c6768121aa85e1cf74b0 to your computer and use it in GitHub Desktop.
Latency script
#!/bin/sh
for url in $(cat input.txt);do curl -s -o /dev/null -w '{"url": "%{url_effective}", "status": "%{http_code}", latency": "%{time_total}"}\n' $url; done | jq -s '.'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment