Giter VIP home page Giter VIP logo

speedtest-lite's Introduction

speedtest-lite

shell script command line Internet bandwidth testing using speedtest.net. It is written in shell script and external programs for the test and calculation.

Inspired by speedtest-cli written by Matt Martz (sivel) - https://github.com/sivel/speedtest-cli

INSTALL

$ sudo apt-get install curl netcat-openbsd bc pv
$ wget https://raw.githubusercontent.com/neutronth/speedtest-lite/master/speedtest-lite

USAGE

  • Get help
$ ./speedtest-lite --help

usage: ./speedtest-lite [-h|--help] [--simple] [--list] [--server SERVER] [--version]
optional arguments:
  -h, --help            show this help message and exit
  --simple              suppress verbose output, only show basic information
  --list                display a list of speedtest.net servers sorted by
                        distance
  --server SERVER       specify a server ID to test against
  --filter COUNTRYCODE  specify a country code to filter the 
                        servers, eg. TH, JP, US
  --insecure            Allow connections to speedtest.net SSL with no 
                        certificate check
  --version             show the version number and exit
  • Just test
$ ./speedtest-lite

Retrieving speedtest.net configuration...
Retrieving speedtest.net server list...
Testing from True Internet (114.109.97.xxx)...
Selecting best server based on latency...
Hosted by STS Group (Bangkok) [406.18 km]: 20.21 ms
Testing download speed...........
Download: 42.26 Mbit/s
Testing upload speed..........................
Upload: 3.28 Mbit/s
  • Less verbose test
$ ./speedtest-lite

Ping: 20.40 ms
Download: 43.20 Mbit/s
Upload: 3.22 Mbit/s
  • Filter servers by country
$ ./speedtest-lite --filter JP

Retrieving speedtest.net configuration...
Retrieving speedtest.net server list...
Testing from True Internet (114.109.97.xxx)...
Selecting best server based on latency...
Hosted by Too late (Ishikari) [4675.45 km]: 368.75 ms
Testing download speed..........
Download: 4.52 Mbit/s
Testing upload speed.................
Upload: 1.50 Mbit/s
  • List servers
$ ./speedtest-lite --list

Retrieving speedtest.net configuration...
Retrieving speedtest.net server list...
1936) Lao Telecom (Vientiane, Lao PDR ) [208.44 km]
1803) Beeline Lao (Vientiane, Lao PDR ) [208.44 km]
6220) omputer Engineer Dept, RMUTT, Thailand (Pathum Thani, Thailand ) [384.36 km]
1219) STS Group (Bangkok, Thailand ) [406.18 km]
3147) AIS (Bangkok, Thailand ) [406.18 km]
5920) PEA (Bangkok, Thailand ) [406.18 km]
6283) Ncic (Bangkok, Thailand ) [406.18 km]
3855) dtac (Bangkok, Thailand ) [406.18 km]
...
...
  • Test against specify server
$ ./speedtest-lite --server 1803

Retrieving speedtest.net configuration...
Retrieving speedtest.net server list...
Testing from True Internet (114.109.97.xxx)...
Hosted by Beeline Lao (Vientiane) [208.44 km]: 59.80 ms
Testing download speed..........
Download: 40.88 Mbit/s
Testing upload speed.......................
Upload: 3.24 Mbit/s
$ wget https://raw.githubusercontent.com/holman/spark/master/spark
$ ./speedtest-lite

Retrieving speedtest.net configuration...
Retrieving speedtest.net server list...
Testing from True Internet (114.109.97.xxx)...
Selecting best server based on latency...
Hosted by STS Group (Bangkok) [406.18 km]: 19.34 ms
Testing download speed ▁▇████████
Download: 42.17 Mbit/s
Testing upload speed ▁▁▁▁▁▁▁▁▁▁█▆▆▆▆▆▆▆▆▆▆▆▆▆
Upload: 3.33 Mbit/s

Contributing

Contributions are welcome.

Happy Hacking!

speedtest-lite's People

Contributors

neutronth avatar

Watchers

Armel Soro avatar James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.