Share your Pi Speedtests! [Script]

Have some feedback, questions, suggestions, or just fancy a chat? Pop it in here.
Post Reply
ghettopi
Posts: 44
Joined: Tue Jul 30, 2019 9:17 pm

Share your Pi Speedtests! [Script]

Post by ghettopi »

Hey folks. Share your Pi Speedtests! Let's see who has the Pi with the fastest internet connection ;)

Remember to remove your public IP address!

Run this command from a terminal :) Source here! It's 100% safe.

Code: Select all

curl -s https://raw.githubusercontent.com/sivel/speedtest-cli/master/speedtest.py | python -
Home Connection (100/100 connection)

Code: Select all

Retrieving speedtest.net configuration...
Testing from ******** (130.***.***.5)...
Retrieving speedtest.net server list...
Selecting best server based on ping...
Hosted by ******** [68.38 km]: 20.971 ms
Testing download speed...........................................................
Download: 82.20 Mbit/s
Testing upload speed..............................................................
Upload: 92.61 Mbit/s
With my VPN connected via Wireguard:

Code: Select all

Retrieving speedtest.net configuration...
Testing from ******** (185.***.***.160)...
Retrieving speedtest.net server list...
Selecting best server based on ping...
Hosted by ******** [0.23 km]: 23.456 ms
Testing download speed..................................................................
Download: 82.09 Mbit/s
Testing upload speed.....................................................................
Upload: 82.16 Mbit/s
This is why I love Wireguard. Almost no loss of speed when using it what-so-ever. I'll edit this post later with tests using openvpn to show the difference. In the past openvpn has been much slower.
User avatar
MichaIng
Site Admin
Posts: 2868
Joined: Sat Nov 18, 2017 6:21 pm

Re: Share your Pi Speedtests! [Script]

Post by MichaIng »

@ghettopi
Nice idea, especially to compare VPN speeds.

Note (for others) that Python is required to run this script. It is Python 3 compatible, which I would then recommend:
apt install python3
kubik256
Posts: 1
Joined: Wed Feb 10, 2021 8:12 pm

Re: Share your Pi Speedtests! [Script]

Post by kubik256 »

Wow, thank you... very nice script :-)

Here is my results:

Code: Select all

root@DietPi:~# python3 ./speedtest.py
Retrieving speedtest.net configuration...
Testing from CentroNet a.s. (217.***.174.***)...
Retrieving speedtest.net server list...
Selecting best server based on ping...
Hosted by JM-Net z.s. (Prague) [7.08 km]: 5.201 ms
Testing download speed................................................................................
Download: 86.03 Mbit/s
Testing upload speed......................................................................................................
Upload: 94.93 Mbit/s
Please, can I use and modify Your script to periodically measure internet speed and save it to table or DB? Thx ;-)
User avatar
Joulinar
Posts: 4417
Joined: Sat Nov 16, 2019 12:49 am

Re: Share your Pi Speedtests! [Script]

Post by Joulinar »

There are a couple of cool Grafana dashboards arevailable. Maybe you like to have a look to this one https://github.com/psilvaazevedo/TICK-Speedtest-Grafana

Grafana + InfluxDB are available via DietPi software
Pls let us know if a solution is working. This could help others if they hit by similar situation. Your DietPi Team
Parkour_Lama
Posts: 25
Joined: Sat Sep 12, 2020 2:02 pm

Re: Share your Pi Speedtests! [Script]

Post by Parkour_Lama »

Thanks for the script, it's real useful.

But by God does it feel bad:

Code: Select all

Retrieving speedtest.net configuration...
Testing from ********** Private Limited (103.**.***.62)...
Retrieving speedtest.net server list...
Selecting best server based on ping...
Hosted by ******** Pvt. Ltd. (******) [17.20 km]: 114.497 ms
Testing download speed................................................................................
Download: 9.21 Mbit/s
Testing upload speed................................................................................................
Upload: 10.09 Mbit/s

Perhaps one day I'll get the same speeds as the ones I read here :D
User avatar
southpaw32
Posts: 8
Joined: Tue Feb 09, 2021 7:15 pm

Re: Share your Pi Speedtests! [Script]

Post by southpaw32 »

ON ATT Residential Fiber 1000/1000
RPi4 plugged into a mesh satellite. I'll have to move it to the router and test it!

Retrieving speedtest.net configuration...
Testing from AT&T U-verse (xxxx)...
Retrieving speedtest.net server list...
Selecting best server based on ping...
Hosted by XXX [8.22 km]: 12.714 ms
Testing download speed................................................................................
Download: 415.94 Mbit/s
Testing upload speed................................................................................................
Upload: 236.04 Mbit/s
CbIP
Posts: 15
Joined: Mon Jan 25, 2021 11:25 am

Re: Share your Pi Speedtests! [Script]

Post by CbIP »

I'll share mine. Twisted pair goes to the next ISP's node. The node itself is connected by fiber. All network is approximately 10 years old.
11$ or 9€ per month including IP TV. ISP offers 500 Mb/s down. Real speed varies from 350 to 600 Mb/s.

Code: Select all

Hosted by () [0.39 km]: 4.443 ms
Testing download speed................................................................................
Download: 612.03 Mbit/s
Testing upload speed......................................................................................................
Upload: 168.21 Mbit/s
VPN connection cuts a lot (node is located in different country).

Code: Select all

Hosted by () [1.14 km]: 72.914 ms
Testing download speed................................................................................
Download: 137.07 Mbit/s
Testing upload speed......................................................................................................
Upload: 125.05 Mbit/s
Last edited by CbIP on Fri Feb 19, 2021 1:59 pm, edited 1 time in total.
User avatar
Joulinar
Posts: 4417
Joined: Sat Nov 16, 2019 12:49 am

Re: Share your Pi Speedtests! [Script]

Post by Joulinar »

puh I'm living on one of Europe's capital cities but my internet connection feels like stone age with a 4 times higher price tag :cry:
Pls let us know if a solution is working. This could help others if they hit by similar situation. Your DietPi Team
Post Reply