Skip to content

Instantly share code, notes, and snippets.

@fedir
Created November 10, 2011 20:56
Show Gist options
  • Save fedir/1356197 to your computer and use it in GitHub Desktop.
Save fedir/1356197 to your computer and use it in GitHub Desktop.
Benchmarking Your site performance with wget
#!/bin/bash
DOWNLOAD_THREADS=100
start=`date +%H:%M:%S`
for((i=1; i<=$DOWNLOAD_THREADS; i++))
do
wget -o /dev/null -O /dev/null -p -q $1 &
done
wait
end=`date +%H:%M:%S`
printf "%s " `hostname` $1 $start $end
echo
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment