azzvx / gogotester

728 stars 238 forks source link

带宽测试策略 #2

Open yfdyh000 opened 9 years ago

yfdyh000 commented 9 years ago

目前是尝试下载1m文件直到完成或超时吧。 希望能以指定时间(如10秒)内得到的数据量计算平均速度,10秒时强制结束下载一个大文件(如几十MB)。

另外,带宽测试时如果某个IP速度很慢(xxKB/s),似乎不能停止测试和关闭窗口,直到该测试完成。

azzvx commented 9 years ago

大文件找不到资源,之前上传的资源下载次数多了直接403了。 后来改了下,下载资源描述页面,最大只能有1mb。 限制下载时间为十秒貌似可行。

在 14/12/17,YFdyh000notifications@github.com 写道:

目前是尝试下载1m文件直到完成或超时吧。 希望能以指定时间(如10秒)内得到的数据量计算平均速度,10秒时强制结束下载一个大文件(如几十MB)。

另外,带宽测试时如果某个IP速度很慢(xxKB/s),似乎不能停止测试和关闭窗口,直到该测试完成。


Reply to this email directly or view it on GitHub: https://github.com/azzvx/gogotester/issues/2

yfdyh000 commented 9 years ago

大文件像是我找到的 https://gaima.googlecode.com/svn/trunk/gaima/Fractal%20images/Fractal%20checkers.jpg 就可以。但不清楚频繁下载(并中断)是否会有限制。 还可以考虑将这个图片上传到Google+相册,得到图片在 .googleusercontent.com 的 URL。 或者通过 https://support.google.com/chrome/answer/126299?hl=zh-Hans 得到Chrome完整安装包的URL,在dl.google.com。

其实这种带宽测试的方法好像挺浪费Google的资源的,但我没想出别的方法筛选掉国际带宽过低的IP。

azzvx commented 9 years ago

忽然想起了一件事,gae限制60s 内 fetch的最大内容为22mb,也就是375kb/s以上的带宽就可以GAE了。

另除非google自己提供的资源,用户上传的都有单位时间的流量限制。

在 2014年12月17日 下午10:47,YFdyh000 notifications@github.com写道:

大文件像是我找到的 https://gaima.googlecode.com/svn/trunk/gaima/Fractal%20images/Fractal%20checkers.jpg 就可以。但不清楚频繁下载(并中断)是否会有限制。 还可以考虑将这个图片上传到Google+相册,得到图片在 .googleusercontent.com 的 URL。 或者通过 https://support.google.com/chrome/answer/126299?hl=zh-Hans 得到Chrome完整安装包的URL,在dl.google.com。

其实这种带宽测试的方法好像挺浪费Google的资源的,但我没想出别的方法筛选掉国际带宽过低的IP。

— Reply to this email directly or view it on GitHub https://github.com/azzvx/gogotester/issues/2#issuecomment-67331869.