bertrandmartel / speed-test-lib

:cloud: JSpeedTest : speed test client library for Java/Android
MIT License
381 stars 119 forks source link

bitrate is very very #56

Closed Hallaz closed 6 years ago

Hallaz commented 6 years ago

I compared 2 result one from this libs, and another from speedtest ookla with the same address.. (i have access to ookla regional test server and got address they use to test and fortunately I can use those address )

START UPLOAD   http://xxx.xxx.xx.xx/speedtest/upload.php random filesize 1000000 * 5    
.....................................................
[UPLOAD_COMPLETED] rate in kbyte/s : 525.0446287999999
[UPLOAD_COMPLETED] rate in kbit/s   : 4200.3570303999995
[UPLOAD_COMPLETED] startTime  : 1523459673837
[UPLOAD_COMPLETED] endTime   : 1523459683360
[UPLOAD_COMPLETED] time   : 9523

START DOWNLOAD  http://xxx.xxx.xx.xx/speedtest/random1500x1500.jpg 
........................
[DOWNLOAD_COMPLETED] rate in kbyte/s : 1331.8154993
[DOWNLOAD_COMPLETED] rate in kbit/s   : 10654.5239944
[DOWNLOAD_COMPLETED] startTime  : 1523459683381
[DOWNLOAD_COMPLETED] endTime   : 1523459686736
[DOWNLOAD_COMPLETED] time   : 3355

and the result from speedtest ookla screenshot_20180411-222301_speedtest

bertrandmartel commented 6 years ago

@Hallaz Thanks a lot I will look into this

Hallaz commented 6 years ago

@bertrandmartel you can test here http://175.111.88.29/speedtest/

bertrandmartel commented 6 years ago

Thanks for raising this issue, I've moved the start time before reading the body in download mode which should add precision for the speed test calculation :+1: The new release is 1.32.0. Let me know if you have any problem