m-lab / ndt7-client-android

ndt7 Android-native client
https://www.measurementlab.net/
Apache License 2.0
13 stars 11 forks source link

Upload test wrong values #20

Open dmytroreutov opened 1 month ago

dmytroreutov commented 1 month ago

Hello! I'm trying to use ndt7 Android library for speed testing purposes.

I have run across weird issue with Upload test. It gives higher values than it should. My router is set up to limit my bandwidth to ~1Mb/s both Download and Upload. As you can see on screens ndt7 demo app gives 2.8 Mb/s result compared to Ookla 0.83 (which is not precise too, but not a big difference at least).

iOS ndt7 library gives me more precise results for Upload test than Android version.

I believe that the root cause for it lies somwhere in net.measurementlab.ndt7.android.utils.PayloadTransformer#performDynamicTuning logic, because such logic is absent in iOS ndt7 Upload test as I can see.

Can you please suggest how can I fix this locally? Maybe I should get rid of PayloadTransformer at all?

cc @ahardewig, sorry for mentioning, but I've searched across PayloadTransformer logic and found your PRs.

Screenshot_2024-10-28-14-36-43-136_net measurementlab ndt7impl android Screenshot_2024-10-28-14-38-21-889_org zwanoo android speedtest

dmytroreutov commented 1 month ago

Unfortunately, removing of PayloadTransformer didn't help. Trying to debug time and bytes calculation