查看: 76|回复: 0

[简易教程] mac限速命令行Simulate slow network connections on Linux and Mac OS X

[复制链接]

560

主题

76

听众

7187

积分

头头

Rank: 12Rank: 12Rank: 12

发表于 2020-8-10 17:24 |显示全部楼层
共享资源可获取更多积分,所有资源仅供参考学习研究!
Simulate slow network connections on Linux and Mac OS X


Inspired by tylertreat/Comcast, the connectivity setting in the WPTAgent and sltc.

Throttle uses pfctl on Mac and tc on Linux to simulate different network speeds. On Linux you also need ip and route for Throttle to work.

You can set the download/upload speed and RTT. Upload/download is in kbit/s and RTT in ms.

This is an early release, so please help us find potential bugs.

Use with latest NodeJS LTS.


地址:https://github.com/sitespeedio/throttle


sudo npm install @sitespeed.io/throttle -g

示例:--profile         Premade profiles, set to one of the following
                     3g: up:768 down:1600 rtt:150
                     3gfast: up:768 down:1600 rtt:75
                     3gslow: up:400 down:400 rtt:200
                     2g: up:256 down:280 rtt:400
                     cable: up:1000 down:5000 rtt:14
                     dsl: up:384 down:1500 rtt:14
                     3gem: up:400 down:400 rtt:200
                     4g: up:9000 down:9000 rtt:85
                     lte: up:12000 down:12000 rtt:35
                     edge: up:200 down:240 rtt:35
                     dial: up:30 down:49 rtt:60
                     fois: up:5000 down:20000 rtt:2

限速:throttle 3gslow  或throttle 2g
停止:throttle stop
自定义:throttle --up 330 --down 780 --rtt 200
楼主热帖
人人为我 我为人人 互相分享 互相学习 互相进步 一带一路
温馨提示:求助请到“Unity技术讨论”版块中发帖,便于集中解决!
您需要登录后才可以回帖 登录 | 立即注册

关闭

站长推荐 上一条 /1 下一条

Unity3D游戏开发联盟(资源共享平台) -Unity3D,Unreal ( 粤ICP备20003399号 )

GMT+8, 2020-9-29 19:20 , Processed in 0.093546 second(s), 39 queries .