GithubHelp home page GithubHelp logo

speedtest's Introduction

speedtest.sh: record the speed of the internet connection

Requirements

Installation

wget https://raw.githubusercontent.com/akikuno/speedtest/main/speedtest.sh

or

curl -O https://raw.githubusercontent.com/akikuno/speedtest/main/speedtest.sh

To install speedtest-cli, run:

pip install speedtest-cli

or

conda install -c conda-forge speedtest-cli

Usage

bash speedtest.sh \
    -o [output file] \
    -i [interval of the each measurement] \
    -d [duration of the whole measurement]
  • -o: Name of the outout CSV file
  • -d: Duration of the whole measurement (default: 1h)
    • integer + units (s,m,h,d,w)
    • e.g: 6h means the entire measurement period is 6 hours
  • -i: Interval of the each measurement (default: 10m)
    • integer + units (s,m,h,d,w)
    • e.g: 10m means that the individual measuring points are 10 minites apart

Example

Measure the speed of your internet connection every 1 minites for a total of 10 minutes

bash speedtest.sh -o example/speedtest.csv -i 1m -d 10m

Output

example/speedtest.csv

Date Ping (ms) Download (Mbit/s) Upload (Mbit/s)
2023-05-01 07:14:45 47.208 30.87 109.26
2023-05-01 07:15:47 36.415 25.90 118.86
2023-05-01 07:16:47 44.498 87.65 89.85
2023-05-01 07:17:47 13.199 83.94 55.74
2023-05-01 07:18:47 52.701 63.14 67.29
2023-05-01 07:19:47 18.468 38.66 42.55
2023-05-01 07:20:47 13.016 67.87 94.21
2023-05-01 07:21:47 17.619 77.15 164.27
2023-05-01 07:22:47 17.746 43.59 45.83
2023-05-01 07:23:47 17.577 94.22 133.41

speedtest's People

Contributors

akikuno avatar

Watchers

 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.