Skip to content

Instantly share code, notes, and snippets.

@dead-horse
Created July 27, 2014 16:12
Show Gist options
  • Save dead-horse/adef2f899fae3316154c to your computer and use it in GitHub Desktop.
Save dead-horse/adef2f899fae3316154c to your computer and use it in GitHub Desktop.
#! /bin/sh
while [ 1 ]
do
START=$(($(date +%s%N)/1000000))
curl -s -i http://localhost:3000 | grep X-Response-Time
END=$(($(date +%s%N)/1000000))
DIFF=$((END - START))
echo "receive diff: $DIFF"
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment