Skip to content

Instantly share code, notes, and snippets.

@netmarkjp
Created March 6, 2015 11:11
Show Gist options
  • Save netmarkjp/ebc4f232638826fbd57f to your computer and use it in GitHub Desktop.
Save netmarkjp/ebc4f232638826fbd57f to your computer and use it in GitHub Desktop.
svfes_bench.sh
#!/bin/sh
ip=""
password=""
dbtype=""
WAIT_LIMIT_SEC=3600
LIMIT_DATE=$(date +%s --date="${WAIT_LIMIT_SEC:?} sec")
while [[ `date +%s` -lt ${LIMIT_DATE:?} ]]
do
echo "## `date`"
curl -q "https://2015spring.serverfesta.info/ranking/benchmark.php?ip=$ip&password=$password&dbtype=$dbtype"
echo
sleep 3
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment