Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Comparing the download speed for an image on facebook vs twitter cdn on Three's feel@home
#!/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
You can’t perform that action at this time.