Apple provides an utility to simulate slow network conditions for macOS. This is useful for iOS testing using the Simulator.

This package is included inside Additional Tools for Xcode 9 (inside folder Hardware) in Developer Downloads.

His name is Network Link Conditioner.prefPane, double-click it to install in the System Preferences of your Mac.