项目作者: BetaHuhn

项目描述 :
🏎️ Node.js Network Speedtest
高级语言: JavaScript
项目地址: git://github.com/BetaHuhn/speedtest.git
创建时间: 2020-06-15T20:12:04Z
项目社区:https://github.com/BetaHuhn/speedtest

开源协议:MIT License

下载


Node.js Network Speedtest

A simple Node.js powered speedtest website. Supports ping, upload and download speed
preview image

Live Website

The live version of this project can be found here: https://speedtest.mxis.ch.

Introduction

This repo contains the source code for a simple Node.js client speedtest. It uses WebSockets (w. socket.io) to quickly transfer data between the server and client. Ping is measured by timing multiple round trips and selecting the lowest one. Download and upload speeds are measured by repeatedly sending chunks of junk data back end forth and timing each request. The chunk size is calculated based on the current network speed.

Note: The accuracy of tests decreases at higher speeds

Setup

  • Download this repo

    1. git clone https://github.com/BetaHuhn/speedtest.git
  • Change directory

    1. cd speedtest
  • Install dependencies

    1. npm install
  • Start server

    1. npm run start

To Do:

  • Measure Jitter
  • Display speedometer when performing test
  • Different UI for showing result

Authors

  • Maximilian Schiller (@BetaHuhn) - Initial work

License

This project is licensed under the MIT License - see the LICENSE.md file for details