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

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

问题描述

我正在为移动浏览器开发一个Web应用程序.现在,大多数开发工作都是在本地计算机(使用本地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?

推荐答案

您可能想给草率试试.

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

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天全站免登陆