Created
March 3, 2015 19:54
-
-
Save Leask/55f8d55d10a6b7d2683e to your computer and use it in GitHub Desktop.
Ranking script for burlingtonenglish.com connection optimization project.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
direct() { | |
for i in {1..100}; do | |
curl --compressed --silent http://www.burlingtonenglish.com > /dev/null | |
echo -n '=' | |
done | |
} | |
optimized() { | |
for i in {1..100}; do | |
curl --compressed --silent --proxy http://207.226.141.217:3128 http://www.burlingtonenglish.com > /dev/null | |
echo -n '=' | |
done | |
} | |
echo 'Testing direct connection:' | |
time direct | |
echo '' | |
echo '' | |
echo 'Testing optimized connection:' | |
time optimized |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment