GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - gregorybesson/bandwidthCalculator: This non-blocking script use a webworker to calculate approximatively the bandwith of the user

BranchesTags
Open more actions menu

Latest commit

 

History

7 Commits
7 Commits

Folders and files

NameName
Last commit message
Last commit date
.gitignore
.gitignore
 
 
LICENSE
LICENSE
 
 
MaisonCausapscal.JPG
MaisonCausapscal.JPG
 
 
README.md
README.md
 
 
detectbandwidth.html
detectbandwidth.html
 
 
detectbandwidth.js
detectbandwidth.js
 
 

Repository files navigation

bandwidthCalculator

This non-blocking script use a webworker to calculate approximatively the bandwidth of the user.

Take detectbandwidth.html as a tutorial on how to create the webworker, send the file url to test and receive the result.

##detectbandwidth.js

This script receive the file to test and get its filesize by sending an HTTP HEAD request (very fast).

Once done, it downloads the file and calculate the time taken. It then calculates the rate in kb/s and send the result as a json :

{'fileSize':1246184,'rate':54181.9,'duration':23}
  • fileSize : The size in octets of the test file
  • rate : The rate in kb/s that can handle this connection
  • duration : The duration in ms taken to download the file

About

This non-blocking script use a webworker to calculate approximatively the bandwith of the user

Resources

Readme
MIT license
Activity

Stars

4 stars

Watchers

3 watching

Forks

2 forks
Report repository

Releases

Packages

Contributors

Languages

You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.