Created
May 16, 2018 12:24
-
-
Save veggiesaurus/60da4d04b9bd6c8e78e5bb718469e436 to your computer and use it in GitHub Desktop.
Speedtest scripts (testing 6 local and 6 international servers)
This file contains hidden or 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 | |
trap "kill 0" SIGINT | |
SERVER_NAMES_SA=("Interworks (Cape Town)" "SAIX (Cape Town)" "MTN SA (Cape Town)" "MTN SA (Port Elizabeth)" "Vox Telecom (Johannesburg)" "Seacom (Johannesburg)") | |
SERVERS_SA=(14749 1270 2962 16107 7254 5889) | |
SERVER_NAMES_INT=("Vodafone UK (London)" "SEACOM (Amsterdam)" "Orange (Barcelona)" "Cybera (Calgary)" "Comcast (Richmond)" "QTS (Hong Kong)") | |
SERVERS_INT=(2789 16534 4374 4637 1770 12990) | |
echo "South African server tests:" | |
echo "===========================" | |
echo | |
for ((i=0; i < ${#SERVERS_SA[@]}; i++)) | |
do | |
echo "Testing ${SERVER_NAMES_SA[$i]} (#${SERVERS_SA[$i]})" | |
speedtest-cli --simple --server ${SERVERS_SA[$i]} | |
echo | |
done | |
echo | |
echo "International server tests:" | |
echo "===========================" | |
echo | |
for ((i=0; i < ${#SERVERS_INT[@]}; i++)) | |
do | |
echo "Testing ${SERVER_NAMES_INT[$i]} (#${SERVERS_INT[$i]})" | |
speedtest-cli --simple --server ${SERVERS_INT[$i]} | |
echo | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment