如何测试站点的低带宽?
我正在为移动浏览器开发一个网络应用程序。现在大部分开发都是在本地机器上完成的(使用本地 apache),我想测试它在低带宽甚至高延迟环境中的行为。我不需要使用 apache,因为目前服务器端的东西很少。你知道有什么好的工具吗?
I'm developing a web application for mobile browsers. Right now most of development is done on local machines (with local apache) and I'd like to test how it behaves in low bandwidth and even high latency environments. I don't need to use apache as there is little server side things for the moment. Do you know any good tool?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(5)
您可能想尝试Sloppy。
更新:@SamSaffron 发布了一个很酷的要点:https://gist.github.com/2132065 进行注入网络堆栈延迟 300 毫秒
You may want to give Sloppy a try.
UPDATE: @SamSaffron posted a cool gist: https://gist.github.com/2132065 to inject 300ms latency into the network stack
我通常只是在客户端上安装 Fiddler 并在运行 Fiddler 的同时运行该网站。它可以模拟 56K 速度,还可以跟踪已接收的数据量,以便您可以准确检查您的网站使用了多少带宽。
I usually just install Fiddler on the client and run the site whilst running Fiddler. It can simulate 56K speeds and it can also keep track of how much data has been received so you can check exactly how much bandwidth your site uses.
尝试 Fiddler2 的这个插件来限制带宽
http ://www.logic-worx.com/index.php/tools-and-apps/fiddler-connection-simulator/
Try this addon for Fiddler2 to limit the bandwitdth
http://www.logic-worx.com/index.php/tools-and-apps/fiddler-connection-simulator/
如果您使用的是 Firefox,则可以安装 Firebug 并安装 Yahoo! 的 YSlow 插件。这会向 Firebug 添加一个附加选项卡,指出当前加载页面的带宽瓶颈。
If you're using Firefox, you could install Firebug and install Yahoo!'s YSlow addon. This adds an additional tab to Firebug which points out bandwidth bottlenecks for the currently loaded page.
有一个很棒的工具可以实现此目的 Charles
关于 Charles
Charles 是一个网络代理 ( HTTP 代理/HTTP 监视器)在您自己的计算机上运行。然后,您的网络浏览器(或任何其他互联网应用程序)被配置为通过 Charles 访问互联网,然后 Charles 就能够记录并为您显示发送和接收的所有数据。
在 Web 和 Internet 开发中,您无法看到 Web 浏览器/客户端和服务器之间发送和接收的内容。如果没有这种可见性,就很难准确地确定故障所在,而且非常耗时。 Charles 使您可以轻松查看正在发生的情况,以便您可以快速诊断和解决问题。
Charles 使调试变得快速、可靠和先进;节省您的时间和挫败感!
Key Features
所有上述内容均取自 查尔斯网站。
There is a great tool for this purpose Charles
About Charles
Charles is a web proxy (HTTP Proxy/HTTP Monitor) that runs on your own computer. Your web browser (or any other Internet application) is then configured to access the Internet through Charles, and Charles is then able to record and display for you all of the data that is sent and received.
In Web and Internet development you are unable to see what is being sent and received between your web browser / client and the server. Without this visibility it is difficult and time-consuming to determine exactly where the fault is. Charles makes it easy to see what is happening, so you can quickly diagnose and fix problems.
Charles makes debugging quick, reliable and advanced; saving you time and frustration!
Key Features
All above content is taken from CHARLES Website.