Go to Settings -> Developer -> Network Link Conditioner (that's the section title, the actual table view cell says Status)
Settings
Developer
Network Link Conditioner
Status
There you can enable the Network Link Conditioner and set whatever speed you deem fit (or even create a new one).
Xcode 9 you need to download Additional tools for Xcode 9
Additional tools for Xcode 9
https://developer.apple.com/download/more/