4 ms·
Oh that looks promising and it`s easier than my current solution. Thank you! For years I used the following small note saved on my mac to perform bandwidth test
by madethemcry 14y ago
Oh that looks promising and it`s easier than my current solution. Thank you! For years I used the following small note saved on my mac to perform bandwidth tests of my application.
#create firewall bandwidth configuration
sudo ipfw pipe 1 config bw 15KByte/s
#add config to firewall
sudo ipfw add 1 pipe 1 src-port 80
#change. during testing
sudo ipfw pipe 1 config bw 115KByte/s
#delete. after testing
sudo ipfw delete 1
- mr_luc 14y agoDo you know of an easy way to simulate latency? I have bash aliases for various levels of ipfw throttling, but I've ended up using other programs because 768k/s with no latency seems to load some kinds of sites disturbingly close to the speed they load if I let the bandwidth back up to its 18mbit/s normal speed, which I think has to do with latency. Lots of the Mac OS standalone programs that do this kind of thing, like Link Conditioner or Speed Limit, add configurable latency to requests as well.
- paxswill 14y agoThe reason Link Conditioner is 10.7 and up is that it's using pf[0] internally. The man page for pfctl[1] is pretty easy to read after you start to get the basics of how pf works. Be careful applying examples you find online though. Last I heard, OS X's version of pf is slightly newer that FreeBSDs, and moderately behind OpenBSDs. 0: http://www.openbsd.org/faq/pf/ http://www.openbsd.org/faq/pf/ 1: http://developer.apple.com/library/mac/#documentation/Darwin/Reference/ManPages/man8/pfctl.8.html http://developer.apple.com/library/mac/#documentation/Darwin...