如何测试网站的低带宽? [英] How to test a site for low bandwidth?

查看:21
本文介绍了如何测试网站的低带宽?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在为移动浏览器开发一个网络应用程序.现在大部分开发都是在本地机器上完成的(使用本地 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?

推荐答案

你可能想要给 马虎 尝试一下.

You may want to give Sloppy a try.

更新:@SamSaffron 发布了一个很酷的要点:https://gist.github.com/2132065 向网络堆栈注入 300 毫秒的延迟

UPDATE: @SamSaffron posted a cool gist: https://gist.github.com/2132065 to inject 300ms latency into the network stack

#!/bin/sh
ipfw -q -f flush

ipfw add pipe 1 in
ipfw add pipe 2 out
ipfw pipe 1 config bw 512Kbit/s queue 30 delay 150ms
ipfw pipe 2 config bw 2Mbit/s queue 10 delay 150ms
ipfw -q add allow all from any to any

这篇关于如何测试网站的低带宽?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆