简体   繁体   English

移动应用程序的HTML5 / JavaScript带宽速度测试

[英]HTML5/JavaScript bandwidth speed test for mobile app

I am struggling with one problem since a couple of days. 几天以来,我一直在努力解决一个问题。

I am developing a mobile app in HTML5. 我正在用HTML5开发一个移动应用程序。 My client wants to add a Bandwidth Speed Test option on it. 我的客户想要在其上添加“带宽速度测试”选项。

So I started looking around on the web, what was done, I found out that almost everything its done using ADOBE FLASH ... wont work... it needs to be Javascript/HTML5. 因此,我开始在网上四处查看,做了什么,我发现几乎所有使用ADOBE FLASH进行的工作...都行不通...它必须是Javascript / HTML5。

I found this: 我找到了这个:

https://github.com/nesk/network.js/issues/64 https://github.com/nesk/network.js/issues/64

I tried to use it but ... I receive an error during the download test: 我尝试使用它,但是...在下载测试期间收到错误:

(console output of the example page) (示例页面的控制台输出)

  • [Download] Restarting measures with 10.000 MB of data [下载]重新启动具有10.000 MB数据的措施
  • [Download] The minimum delay of 8.000 seconds has not been reached [下载]尚未达到8.000秒的最小延迟
  • [Download] Restarting measures with 10.000 MB of data... [下载]重新启动具有10.000 MB数据的措施...
  • [Download] Final average speed: NaN MBps [Download] Finished measures [下载]最终平均速度: NaN MBps [下载]完成的度量

I sincerily dont know what the problem is, I tried to debug the code but I could not get with the reason of this NaN (Not a Number) Error. 我真诚地不知道问题出在什么地方,我尝试调试代码,但由于此NaN(非数字)错误而无法获取。

Any Help? 有帮助吗? Suggestions? 有什么建议吗? Other solutions? 其他解决方案?

Remember I am developing a mobile solution (html5) 记得我在开发移动解决方案(html5)

that mean your network problem or host problem 这意味着您的网络问题或主机问题

[Download] Restarting measures with 10.000 MB of data
[Download] The minimum delay of 8.000 seconds has not been reached
[Download] Restarting measures with 10.000 MB of data...
[Download] Final average speed: NaN MBps [Download] Finished measures

this mean your site speed low for used speedtest like speedtest.net. 这表示您使用speedtest.net等Speedtest的网站速度较低。 they used multiple layer network. 他们使用了多层网络。 try used raspaberry pi concept that you can make fast for small multilayer network 尝试使用raspaberry pi概念,您可以快速实现小型多层网络

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM