Go to Settings -> Developer -> Network Link Conditioner (that's the section title, the actual table view cell says Status)
Network Link Conditioner
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