This commit is contained in:
Peter IJlst 2017-04-16 01:20:48 +00:00 committed by GitHub
commit ddcf4400c3
3 changed files with 41 additions and 0 deletions

View File

@ -0,0 +1,20 @@
Location: Vodafone, Utrecht
Ping: 19.709 ms
Download: 7.95 Mbits/s
Upload: 6.09 Mbits/s
Location: Luna.nl, Rotterdam
Ping: 21.617 ms
Download: 18.73 Mbits/s
Upload: 4.52 Mbits/s
Location: LeaseWeb, Haarlem
Ping: 21.14 ms
Download: 13.48 Mbits/s
Upload: 6.66 Mbits/s
Location: KPN, Amsterdam
Ping: 30.041 ms
Download: 15.59 Mbits/s
Upload: 6.53 Mbits/s

5
log-speedtest.sh Executable file
View File

@ -0,0 +1,5 @@
#!/bin/bash
SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
${SCRIPT_DIR}/speedtest.sh >${SCRIPT_DIR}/data/speedtest-`date +%Y%m%d%H%M`.txt

16
speedtest.sh Executable file
View File

@ -0,0 +1,16 @@
#!/bin/bash
SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
declare -a SERVERS
SERVERS[1671]="Vodafone, Utrecht"
SERVERS[4358]="KPN, Amsterdam"
SERVERS[3587]="LeaseWeb, Haarlem"
SERVERS[2104]="Luna.nl, Rotterdam"
for SERVER in ${!SERVERS[@]}
do
echo "Location: ${SERVERS[$SERVER]}"
${SCRIPT_DIR}/speedtest_cli.py --server $SERVER --simple
echo
done