ddsol / speedtest.net

node.js SpeedTest.net client module
MIT License
607 stars 126 forks source link

Results from library are different from given speedtest result URL #125

Open rdsubhas opened 2 years ago

rdsubhas commented 2 years ago

I've tried this multiple times, but the download and upload bandwidth is looks off from what's shown in speedtest.net URL.

Results from library

{
   ...
   "ping":{
      "jitter":3.207,
      "latency":7.961
   },
   "download":{
      "bandwidth":9837836,
      "bytes":143185152,
      "elapsed":15003
   },
   "upload":{
      "bandwidth":1834040,
      "bytes":25181952,
      "elapsed":15014
   },
   "result":{
      "id":"ff4d4498-142c-4fac-8d20-6e6ad8916f81",
      "url":"https://www.speedtest.net/result/c/ff4d4498-142c-4fac-8d20-6e6ad8916f81"
   }
   ...
}

Results from the URL linked

https://www.speedtest.net/result/c/ff4d4498-142c-4fac-8d20-6e6ad8916f81

image

Discrepancy

Only the ping number matches. Download & upload speeds look very different.

rdsubhas commented 2 years ago

Dividing by 125004 consistently matches the result with what's shown in speedtest.net results URL. I've checked the project README, but I'm not sure why this is the case. Any explanation would be very helpful. Thanks!

tamaker commented 2 years ago

same here

fated-x commented 1 year ago

I am experiencing the same data mismatch between the url results and the JSON data itself.

dluccajosetw commented 1 year ago

Its not a mismatch, the speedtest web will show you the result in Megabits, not Megabtyes. When you convert 9837836 bytes to Mb you will obtain 78.70 Mb