Skip to content

Instantly share code, notes, and snippets.

@YasushiKobayashi
Last active June 25, 2018 10:43
Show Gist options
  • Save YasushiKobayashi/4ed7d140364f61e2c125c1ce4bf402cb to your computer and use it in GitHub Desktop.
Save YasushiKobayashi/4ed7d140364f61e2c125c1ce4bf402cb to your computer and use it in GitHub Desktop.
#!/bin/sh
i=1
while :
do
curl -kL http://example.com -o /dev/null -w "status-code %{http_code} \t time %{time_total}" 2> /dev/null &
i=`expr $i + 1`
if [ $i -gt 20 ]; then
break
fi
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment