jrquick17 / ng-speed-test

A light weight Angular 2+ library for checking internet speed
https://ng-speed-test.jrquick.com
MIT License
12 stars 3 forks source link

Speed returned is not accurate #8

Closed ghost closed 3 years ago

ghost commented 3 years ago

I am getting 3.2 Mbps via the plugin but using https://fast.com/# I am getting 10Mbps

jrquick17 commented 3 years ago

@irastee Can you provide code samples? Depending upon configuration the speed will be more or less accurate.

ghost commented 3 years ago

Hi, Please find the attached code

speedtest.txt

jrquick17 commented 3 years ago

Nonissue. When compared with different speed test services this one closely resembles them. There can be a variety of reasons for the speed tests to not always match (algorithm, which server, # of iterations, size of file, etc).

The code provided uses the default configuration which means the internet speed is calculated using a request from GitHub servers. So differences in speed could also be attributed to GitHub server response times.

You can further increase the accuracy of the tests by increasing the number of iterations or using your own file at a different server location.