Crapify慢速网络模拟器
Crapify 是一个代理服务器,用来模拟缓慢而且不稳定的 HTTP 网络连接,可以让你限制:
上传和下载速度
对外 HTTP 请求的并发连接数
使用方法:
npm install crapify -gcrapify --port=5000 --speed=3000 --concurrency=2, where:port侦听端口speed连接速率concurrency并发连接数
示例:
usage with npm
npm config set proxy http://127.0.0.1:5000
usage with curl
curl -v --proxy http://127.0.0.1:5000 https://www.google.com
usage with OSX
Go to
system preferences.Click on
Network.Click on
Advanced.Click on
Proxies.Enable an
http, and anhttpsproxy, with127.0.0.1, and:5000, respectively.
评论
