networkquality
Measure the network quality by connecting to the internet. tldr-pages
On macOS
macOS
Test the network quality for the default interface
networkQualityIdentifyTest the upload and download speeds sequentially instead of in parallel
networkQuality -sIdentifyTest a specified network interface
networkQuality -I en0IdentifyTest the network quality with verbose output
networkQuality -vIdentify