Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!


Coded a speedtest script that test your server's upload and download speeds - Page 2
New on LowEndTalk? Please Register and read our Community Rules.

All new Registrations are manually reviewed and approved, so a short delay after registration may occur before your account becomes active.

Coded a speedtest script that test your server's upload and download speeds

2»

Comments

  • PM me a VPS sign up link and I'll set it up.

    Thanked by 1mov3
  • blackblack Member
    edited December 2013

    improvements -

    • 3 new EU locations thanks to @Maounique from prometeus
    • 1 new CA location thanks to @MCHPhil
    • moved CPU test after the network speed test (because the main reason you're using this script is to see your network speed right?). The formatting is also much better.
    • added disk IO test (because LE{B,T} love it so much)
    • default file size for download and upload has been bumped up to 100MB. It should be more accurate but the test takes longer and uses 10x more bandwidth. I'll default it to 50MB (and have an option for it to go up to 100MB) if there's too much bandwidth usage.




      to do -

    • before the speedtest, get a traceroute and actually look up the IPs to get the ISP/Carrier names and print it out in a nice format

    • have 1 main speedtest file but make two more based on location. speedtest.us.sh only contains locations in the US and speedtest.eu.sh only contains locations in the EU.

    Enjoy :)

    Thanked by 2Maounique MCHPhil
  • any github repo? would be nice to fork ;]

  • @conta said:
    any github repo? would be nice to fork ;]

    Nope, I can make a github account for it though but I see no reason to just for this piece of code. You can modify the code and re-purpose it provided that it remains open source and you give some credit to the original author. Enjoy :)

  • @black said:
    Nope, I can make a github account for it though but I see no reason to just for this piece of code. You can modify the code and re-purpose it provided that it remains open source and you give some credit to the original author. Enjoy :)

    well, it's up to you. i guess i will look in github for some similar code, it's better for me to be able to check changes of original code and merge them, than come back here and compare. i will see ;]

  • @conta said:
    well, it's up to you. i guess i will look in github for some similar code, it's better for me to be able to check changes of original code and merge them, than come back here and compare. i will see ;]

    I put the code up on github .

    What's new:

    +3 new locations in the US thanks to @HardCloud @concerto49

    +1 EU location thanks to @Ishaq

    speedtest.NA.sh and speedtest.EU.sh are available if you want to test your server in a specific region. NA = North America and EU = Europe.

    Will be pushing the latest update to github ASAP.

  • Either GVH is experiencing some massive network issues, or your script is broken. But, I'm guessing GVH is having issues again, SURPRISE!

    -------------Speed test--------------------
    Testing North America locations
    Speedtest from Los Angeles, CA, USA [ generously donated by http://maximumvps.ne                                    t ] on a shared 1 Gbps port
    

    It just froze here.

  • @TheCTS said:
    Either GVH is experiencing some massive network issues, or your script is broken. But, I'm guessing GVH is having issues again, SURPRISE!

    > -------------Speed test--------------------
    > Testing North America locations
    > Speedtest from Los Angeles, CA, USA [ generously donated by http://maximumvps.ne                                    t ] on a shared 1 Gbps port
    > 

    It just froze here.

    Let it run a bit with screen or something and see what happens.

  • @black said:
    Let it run a bit with screen or something and see what happens.

    I did for like 5 minutes, still nothing. I figured out it was GVH. It was downloading but it was only at like 40MB/100MB after 5 minutes when I checked out how big the file was.

    GVH is on a whole other level when it comes to internet speeds.

  • @TheCTS said:
    40MB/100MB after 5 minutes

    Wow, that's 0.13 MB/sec...

  • @black said:
    Wow, that's 0.13 MB/sec...

    Maybe I'll let it run over night, and just MAYBE it will be finished by the time I get up in the morning.

  • We're going to have IO issues fixed this weekend. CC is stocked in buffalo now and all our new nodes got deployed

  • meatonmeaton Member

    Worked great for me... and there seems to be a lot more test locations since you originally released this. Good job! :)

    $ cat /etc/centos-release
    CentOS release 6.5 (Final)

    $ uname -a
    Linux ded-2-lin-162-255.perfectping.com 2.6.32-431.el6.x86_64 #1 SMP Fri Nov 22 03:15:09 UTC 2013 x86_64 x86_64 x86_64 GNU/Linux

    $ wget dl.getipaddr.net/speedtest.sh 2>/dev/null -O- | bash
    -------------Speed test--------------------
    Testing North America locations
    Speedtest from Los Angeles, CA, USA [ generously donated by http://maximumvps.net ] on a shared 1 Gbps port
    Download Speed: 11.48 MB/sec
    Upload speed: 9.53 MB/sec
    Speedtest from Los Angeles, CA, USA [ generously donated by TeraFire, LLC ] on a shared 1 Gbps port
    Download Speed: 1.51 MB/sec
    Upload speed: 9.45 MB/sec
    Speedtest from Las Vegas, NV, USA [ generously donated by http://hostnun.net/ ] on a shared 200 Mbps port
    Download Speed: 4.27 MB/sec
    Upload speed: 4.36 MB/sec
    Speedtest from Dallas, TX, USA [ generously donated by http://cloudshards.com ] on a shared 1 Gbps port
    Download Speed: 25.70 MB/sec
    Upload speed: 12.57 MB/sec
    Speedtest from Chicago, IL, USA [ generously donated by http://vortexservers.com ] on a shared 1 Gbps port
    Download Speed: 25.72 MB/sec
    Upload speed: 12.61 MB/sec
    Speedtest from Beauharnois, Quebec, Canada [ generously donated by http://mycustomhosting.net ] on a shared 1000 Mbps port in / 500 Mbps port out
    Download Speed: 4.09 MB/sec
    Upload speed: 14.01 MB/sec
    Speedtest from Atlanta, GA, USA [ generously donated by http://hostus.us ] on a shared 1 Gbps port
    Download Speed: 29.83 MB/sec
    Upload speed: 13.40 MB/sec
    Speedtest from Clifton, NJ, USA [ generously donated by http://dedicatedminds.com ] on a shared 1 Gbps port
    Download Speed: 12.83 MB/sec
    Upload speed: 14.67 MB/sec
    Speedtest from Jacksonville, FL, USA [ generously donated by http://maximumvps.net ] on a shared 1 Gbps port
    Download Speed: 9.36 MB/sec
    Upload speed: 6.42 MB/sec

    Testing EU locations
    Speedtest from Tallinn, Estonia on a shared 1 Gbps port
    Download Speed: 5.69 MB/sec
    Upload speed: 6.70 MB/sec
    Speedtest from Milan, Italy [ generously donated by http://www.prometeus.net ] on a shared 1 Gbps port
    Download Speed: 10.14 MB/sec
    Upload speed: 7.14 MB/sec
    Speedtest from Frankfurt am Main, Germany [ generously donated by http://www.prometeus.net ] on a shared 1 Gbps port
    Download Speed: 5.97 MB/sec
    Upload speed: 6.63 MB/sec
    Speedtest from Bucharest, Romania [ generously donated by http://www.prometeus.net ] on a semi-dedicated 1 Gbps port
    Download Speed: 7.31 MB/sec
    Upload speed: 8.68 MB/sec
    Speedtest from Amsterdam, Netherlands on a shared 100 Mbps port
    Download Speed: .07 MB/sec
    Upload speed: 1.95 MB/sec

    Testing Asian locations
    Speedtest from Tokyo, Japan on a shared 1 Gbps port
    Download Speed: 1.30 MB/sec
    Upload speed: 2.53 MB/sec

    Testing Australian locations
    Speedtest from Sydney, Australia on a shared 1 Gbps port
    Download Speed: .45 MB/sec
    Upload speed: .21 MB/sec
    ---------------CPU test--------------------
    CPU: 24 x Intel(R) Xeon(R) CPU E5-2620 0 @ 2.00GHz
    Time taken to generate PI to 5000 decimal places with a single thread: 0m27.187s
    ----------------IO test-------------------
    Writing 1000MB file to disk
    (1.1 GB) copied, 9.8014 s, 110 MB/s

    Thanked by 1black
  • PwnerPwner Member

    black said: default file size for download and upload has been bumped up to 100MB. It should be more accurate but the test takes longer and uses 10x more bandwidth. I'll default it to 50MB (and have an option for it to go up to 100MB) if there's too much bandwidth usage.

    Just ran the test earlier today, lucky me to have started a new month on my bandwidth. More or less (because I also used a small amount of bandwidth for other downloads/uploads) the new script uses up about 3GB of data. It takes longer, but at least the results are more accurate. Great job again with the script! :)

    Thanked by 1black
  • blackblack Member
    edited July 2014

    meaton said: Worked great for me... and there seems to be a lot more test locations since you originally released this. Good job! :)

    Thanks! Japan, Australia, Florida (USA), and most recently Portland OR (USA), has been added as speed test locations.

    Pwner said: Just ran the test earlier today, lucky me to have started a new month on my bandwidth. More or less (because I also used a small amount of bandwidth for other downloads/uploads) the new script uses up about 3GB of data. It takes longer, but at least the results are more accurate. Great job again with the script! :)

    Indeed, it does use a lot of bandwidth. There's region specific speed test files available if you want to use those.

    http://dl.getipaddr.net/speedtest.NA.sh for North America
    http://dl.getipaddr.net/speedtest.EU.sh for Europe
    http://dl.getipaddr.net/speedtest.Asia.sh for Asia
    http://dl.getipaddr.net/speedtest.AU.sh for Australia 

    Alternatively, you can modify the speed test script yourself and only test with the locations you want. I think the code is pretty clean and modularized so it shouldn't be too confusing.

    I appreciate the kind words.

  • MaouniqueMaounique Host Rep, Veteran
    edited July 2014

    It wasnt so impressive at start, but now is a comprehensive tool that is just getting better.
    Good job :)

    Just 1 thing, don't add 100 mbps shared, most people test 1 gbps ports, that is just wasting traffic, IMO.

    Thanked by 2black Dylan
  • My dedi server from DataShack seems too slow to upload? How can I fix it?

    -------------Speed test-------------------- Testing North America locations Speedtest from Portland, Oregon, USA [ generously donated by http://bonevm.com ] on a shared 100 Mbps port Download Speed: 10.71 MB/sec Upload speed: 5.04 MB/sec Speedtest from Los Angeles, CA, USA [ generously donated by http://maximumvps.ne t ] on a shared 1 Gbps port Download Speed: 16.59 MB/sec Upload speed: .90 MB/sec Speedtest from Los Angeles, CA, USA [ generously donated by TeraFire, LLC ] on a shared 1 Gbps port Download Speed: .77 MB/sec Upload speed: .92 MB/sec Speedtest from Las Vegas, NV, USA [ generously donated by http://hostnun.net/ ] on a shared 200 Mbps port Download Speed: 7.46 MB/sec Upload speed: .83 MB/sec Speedtest from Dallas, TX, USA [ generously donated by http://cloudshards.com ] on a shared 1 Gbps port Download Speed: 46.57 MB/sec Upload speed: 2.84 MB/sec Speedtest from Chicago, IL, USA [ generously donated by http://vortexservers.com ] on a shared 1 Gbps port Download Speed: 61.56 MB/sec Upload speed: 1.16 MB/sec Speedtest from Beauharnois, Quebec, Canada [ generously donated by http://mycust omhosting.net ] on a shared 1000 Mbps port in / 500 Mbps port out Download Speed: 40.49 MB/sec Upload speed: 1.24 MB/sec Speedtest from Atlanta, GA, USA [ generously donated by http://hostus.us ] on a shared 1 Gbps port Download Speed: 19.45 MB/sec Upload speed: 2.11 MB/sec Speedtest from Clifton, NJ, USA [ generously donated by http://dedicatedminds.co m ] on a shared 1 Gbps port Download Speed: 17.09 MB/sec Upload speed: 1.74 MB/sec Speedtest from Jacksonville, FL, USA [ generously donated by http://maximumvps.n et ] on a shared 1 Gbps port Download Speed: .86 MB/sec Upload speed: .89 MB/sec ---------------CPU test-------------------- CPU: 4 x Intel(R) Xeon(R) CPU 5150 @ 2.66GHz Time taken to generate PI to 5000 decimal places with a single thread: 0m30.060s ----------------IO test------------------- Writing 1000MB file to disk (1.1 GB) copied, 15.9133 s, 67.5 MB/s

  • MaouniqueMaounique Host Rep, Veteran
    edited July 2014

    Looks horrible, my home connection does 100 times better in cases, upload is the most used traffic in a datacenter, it is possible they oversell it to the bone or they limit it because they are asked to by the content industry, but the latter is unlikely.

    Thanked by 1NewforVPS
  • blackblack Member

    NewforVPS said: My dedi server from DataShack seems too slow to upload? How can I fix it?

    You can open a ticket with DataShack.

    Thanked by 2mikho NewforVPS
Sign In or Register to comment.