Code Monkey home page Code Monkey logo

speedtest-csv's Introduction

speedtest-csv

Run a speedtest CLI in the background and record average download speed to a CSV. Use R to plot the values.

This was used for a one-off troubleshooting of a home internet connection. It seemed like AT&T U-Verse was providing lower than the promised 18Mbps. The measurements of a desktop connected by cable directly to the router countered that. The laptop on wifi was slower. The further the laptop was from the wifi, the slower, with the office area being the slowest.

The included CSV files, R script and plots are therefore set up to compare two systems.

Dependencies

  • Mac OS X or unix, with moreutils package installed
  • R

How to

Clone the repo. From the working directory, run speedtest.sh.

./speedtest.sh

Every 5 minutes it downloads a 10MB file from speedtest.net and updates speedtest.csv with the timestamp and average download speed (in bytes per second)

To graph comparisons using the included R script, either copy to files or modify speedtest.R. It expects speedtest-desktop-dable.csv and speedtest-laptop-wifi.csv.

Rscript speedtest.R

It outputs 3 png files:

  1. speedtest.png speedtest.png
  2. speedtest-side-by-side.png speedtest-side-by-side.png
  3. speedtest-boxplot.png speedtest-boxplot.png

Of course a spreadsheet could also be used.

Approximate times when the laptop was near the wifi router (tracked manually and not merged into the data or denoted in graphs):

  1. July 1, 7:23 - 9:17 and 14:30 - 17:04
  2. July 2, 7:25 - 19:57
  3. July 2 20:52 - July 3 9:23

speedtest-csv's People

Contributors

emurphy avatar

Stargazers

 avatar

Watchers

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.