Skip to content

Instantly share code, notes, and snippets.

@Leask
Created March 3, 2015 19:54
Show Gist options
  • Save Leask/55f8d55d10a6b7d2683e to your computer and use it in GitHub Desktop.
Save Leask/55f8d55d10a6b7d2683e to your computer and use it in GitHub Desktop.
Ranking script for burlingtonenglish.com connection optimization project.
#!/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