Skip to content

Instantly share code, notes, and snippets.

@ngmaloney
Created January 3, 2013 06:04
Show Gist options
  • Save ngmaloney/4441177 to your computer and use it in GitHub Desktop.
Save ngmaloney/4441177 to your computer and use it in GitHub Desktop.
Quick and dirty cli speed tester.
#!/bin/bash
LOG=~/Desktop/speedtest.log
FILE=http://speedtest.wdc01.softlayer.com/downloads/test10.zip
echo "scale=2; `curl --progress-bar -w "%{speed_download}" $FILE -o test.zip` / 131072" | bc | xargs -I {} echo `date` {} Mb\/s >> $LOG
rm ./test.zip
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment