Measure the network quality by connecting to the Internet.
# To test the network quality for the default interface:
networkQuality
# To test the upload and download speeds sequentially instead of in parallel:
networkQuality -s
# To test a specified network interface:
networkQuality -I <en0>
# To test the network quality with verbose output:
networkQuality -v