Gert
Posts: 135
Joined: Wed Oct 24, 2012 10:19 pm

Using RPI to periodically run DSL speedtest

Sun Aug 18, 2013 7:11 am

Hello All,

Has somebody ported this pyton DSL speedtest package to RPI?
http://myfedora.co.za/2012/12/testing-y ... dtest-net/

Thanks,
Gert

User avatar
malakai
Posts: 1382
Joined: Sat Sep 15, 2012 10:35 am
Contact: Website

Re: Using RPI to periodically run DSL speedtest

Sun Aug 18, 2013 7:32 am

It would look something like this:

Code: Select all

sudo apt-get update && sudo apt-get upgrade

Code: Select all

sudo apt-get install python-lxml

Code: Select all

wget https://raw.github.com/Janhouse/tespeed/master/tespeed.py

Code: Select all

sudo nano tespeed.py
Remove 2 from python2 should look like the following:

Code: Select all

#!/usr/bin/env python

Code: Select all

CTRL+X

Code: Select all

chmod +x tespeed.py

Code: Select all

./tespeed.py
Results may vary:

Download size: 1.96 MiB; Downloaded in 1.68 s
Download speed: 1.17 Mbit/s

Download size: 1.96 MiB; Downloaded in 1.77 s
Download speed: 1.11 Mbit/s

Download size: 8.09 MiB; Downloaded in 8.33 s
Download speed: 0.97 Mbit/s

Upload size: 2.10 MiB; Uploaded in 2.96 s
Upload speed: 0.71 Mbit/s

Upload size: 2.10 MiB; Uploaded in 2.98 s
Upload speed: 0.70 Mbit/s

Upload size: 8.39 MiB; Uploaded in 10.76 s
Upload speed: 0.78 Mbit/s
http://www.raspians.com - always looking for content feel free to ask to have it posted. Or sign up and message me to become a contributor to the site. Raspians is not affiliated with the Raspberry Pi Foundation. (RPi's + You = Raspians)

exhibit_a
Posts: 9
Joined: Sun Oct 20, 2013 7:53 pm

Re: Using RPI to periodically run DSL speedtest

Tue Nov 26, 2013 8:59 pm

Hi - I get this error.

Code: Select all

Traceback (most recent call last):
  File "./tespeed.py", line 8, in <module>
    from SocksiPy import socks
ImportError: No module named SocksiPy
Do you know what I can do?

Thanks.

exhibit_a
Posts: 9
Joined: Sun Oct 20, 2013 7:53 pm

Re: Using RPI to periodically run DSL speedtest

Wed Nov 27, 2013 2:12 pm

Nevermind - I found a solution...

I used this:

Code: Select all

git clone git://github.com/Janhouse/tespeed.git
        cd tespeed
        git submodule init
        git submodule update
And it worked... It's taken from https://github.com/Janhouse/tespeed by the way :D

JohnHome
Posts: 1
Joined: Tue Dec 31, 2013 4:34 pm

Re: Using RPI to periodically run DSL speedtest

Tue Dec 31, 2013 4:40 pm

Thanks for this post. Worked fine on my Pi with:

Code: Select all

sudo apt-get update && sudo apt-get upgrade
sudo apt-get install python-lxml
git clone --recursive git://github.com/Janhouse/tespeed.git

User avatar
ds18s20
Posts: 80
Joined: Fri Dec 23, 2011 5:44 am
Location: San Francisco

Re: Using RPI to periodically run DSL speedtest

Sun Mar 02, 2014 6:58 pm

What is your experience in terms of the Raspi speed capability?

I can't seem to get readings above 5M or so.. may be the CPU isn't fast enough? I see it go to 100% during the test

Thx

LeSavonFou
Posts: 8
Joined: Wed Mar 05, 2014 11:40 am

Re: Using RPI to periodically run DSL speedtest

Wed Mar 05, 2014 11:43 am

Hi,

Many factors can influences the speed transfer of the Rasp. Which process uses 100% of your CPU time?

User avatar
ds18s20
Posts: 80
Joined: Fri Dec 23, 2011 5:44 am
Location: San Francisco

Re: Using RPI to periodically run DSL speedtest

Wed Mar 05, 2014 3:30 pm

The Python interpreter

brunomoreno71
Posts: 1
Joined: Sat Aug 15, 2015 7:06 am

Re: Using RPI to periodically run DSL speedtest

Sat Aug 15, 2015 7:09 am

Download size: 1.96 MiB; Downloaded in 0.07 s
Download speed: 28.48 Mbit/s
Download size: 1.96 MiB; Downloaded in 0.08 s
Download speed: 24.23 Mbit/s
Download size: 8.09 MiB; Downloaded in 0.09 s
Download speed: 89.15 Mbit/s
Download size: 8.09 MiB; Downloaded in 0.12 s
Download speed: 68.93 Mbit/s
Download size: 17.89 MiB; Downloaded in 0.37 s
Download speed: 47.96 Mbit/s
Download size: 17.89 MiB; Downloaded in 0.30 s
Download speed: 60.20 Mbit/s
Download size: 31.78 MiB; Downloaded in 0.44 s
Download speed: 73.02 Mbit/s
Download size: 71.49 MiB; Downloaded in 0.59 s
Download speed: 121.37 Mbit/s
Download size: 126.52 MiB; Downloaded in 0.59 s
Download speed: 212.66 Mbit/s
Download size: 198.53 MiB; Downloaded in 0.58 s
Download speed: 339.47 Mbit/s
Download size: 285.07 MiB; Downloaded in 0.61 s
Download speed: 465.53 Mbit/s
Download size: 776.39 MiB; Downloaded in 4.06 s
Download speed: 191.45 Mbit/s
Download size: 1012.01 MiB; Downloaded in 8.35 s
Download speed: 121.16 Mbit/s
Upload size: 2.10 MiB; Uploaded in 0.40 s
Upload speed: 5.21 Mbit/s
Upload size: 2.10 MiB; Uploaded in 0.17 s
Upload speed: 12.53 Mbit/s
Upload size: 8.39 MiB; Uploaded in 0.68 s
Upload speed: 12.34 Mbit/s
Upload size: 8.39 MiB; Uploaded in 0.50 s
Upload speed: 16.85 Mbit/s
Upload size: 16.78 MiB; Uploaded in 1.06 s
Upload speed: 15.88 Mbit/s
Upload size: 16.78 MiB; Uploaded in 0.73 s
Upload speed: 23.08 Mbit/s
Upload size: 33.55 MiB; Uploaded in 1.14 s
Upload speed: 29.54 Mbit/s
Upload size: 50.33 MiB; Uploaded in 1.67 s
Upload speed: 30.11 Mbit/s
Upload size: 50.33 MiB; Uploaded in 1.98 s
Upload speed: 25.44 Mbit/s
Upload size: 12.58 MiB; Uploaded in 0.43 s
Upload speed: 28.95 Mbit/s

Download: 478.60 Mbit/s
Testing upload speed..................................................
Upload: 40.51 Mbit/s
Share results: Image

Return to “Networking and servers”