Speedtest Bash Script Linux

A simple benchmark script that shows download and upload speed for multiple locations around the world, CPU speed, and I/O write speed.


The motivation behind this speedtest project is to give you a full picture of your network capabilities. A server serves content, which means the upload speed is extremely important and should not be neglected in a network benchmark test. Using standard utilities in Linux that people are familiar with, this network speed test should be a good base line and works well on minimalistic systems.


You can run the benchmark script using one of the following commands:



Note: A 100MB test file is used by default to test the download and upload speeds, however, in some “exotic” locations, a 10MB file is used to save bandwidth.

How to interprete the results

Since most of these test servers are on a shared port, one of the servers in a certain location might not produce accurate results. However, if the speedtest script shows lower than expected values from a few of the speedtest servers, then it’s more than likely that your server has slow download / upload speed. Running it a few times helps too (but running it 10 consecutive times will not).

Checksums SHA-1


Another speedtest script



pip / easy_install




Just download (Like the way it used to be)



Python API

See the wiki.


It is not a goal of this application to be a reliable latency reporting tool.

Latency reported by this tool should not be relied on as a value indicative of ICMP style latency. It is a relative value used for determining the lowest latency server for performing the actual speed test against.

There is the potential for this tool to report results inconsistent with Speedtest.net. There are several concepts to be aware of that factor into the potential inconsistency:

  1. Speedtest.net has migrated to using pure socket tests instead of HTTP based tests
  2. This application is written in Python
  3. Different versions of Python will execute certain parts of the code faster than others
  4. CPU and Memory capacity and speed will play a large part in inconsistency between Speedtest.net and even other machines on the same network

Issues relating to inconsistencies will be closed as wontfix and without additional reason or context.

Leave a Reply