Monday, February 28, 2011

Get page response time with bash


(time curl URL --head) 2>&1 | grep real | cut -c 6-

for instance

(time curl http://google.com --head) 2>&1 | grep real | cut -c 6-

the response is something like this
0m0.072s

No comments:

Post a Comment