Last active
September 5, 2016 18:43
-
-
Save danpoltawski/033d85dd57ce1553b3cca27de8ad6e87 to your computer and use it in GitHub Desktop.
Comparing the download speed for an image on facebook vs twitter cdn on Three's feel@home
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
#!/usr/bin/env bash | |
# compare the speed of downloading a file from twitter and facebook cnd | |
echo 'facebook,twitter' | |
for run in {1..20} | |
do | |
# Unfortunately these files aren't exactly the exact same bits, but each service does its own thing on uploads, so wasn't | |
# able to get a checksum matching file. | |
curl -s -o /dev/null -w '%{time_total},' https://scontent-lhr3-1.xx.fbcdn.net/t31.0-8/14195317_10153968112506376_6523509013734043542_o.jpg | |
curl -s -o /dev/null -w '%{time_total}\n' https://pbs.twimg.com/media/CrhF35RXgAEoSb0.jpg | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment