Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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