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 for Throttle to work (install using sudo apt-get install -y net-tools
).
You can set the download/upload speed and/or RTT. Upload/download is in kbit/s and RTT in ms.
Use with latest NodeJS LTS.
npm install @sitespeed.io/throttle -g