Test your internet connection from Terminal
networkQuality, built in since macOS Monterey, measures speed and responsiveness without a website.
Works on: macOS Monterey 12 and later · checked on macOS Golden Gate 27
Published: · Source: SS64
There is a speed test built into macOS, no website or app required. In Terminal:
networkQuality
When it finishes, it prints your upload and download capacity and a responsiveness figure in RPM — round trips per minute. That last number is closer to what you notice on a video call than raw speed is: a connection can be fast and still sluggish.
A few options change how it runs:
networkQuality -v # more detail
networkQuality -s # test upload and download one after the other
networkQuality -I en0 # use one network interface only
By default it measures upload and download at the same time and against Apple’s servers, so the figures will not match a speed-test website exactly. It has been part of macOS since Monterey.
Related tips
Keep the Mac awake from Terminal
caffeinate stops the Mac from sleeping for as long as you say, or until a command finishes.
Connect Terminal with the clipboard and the Finder
pbcopy, pbpaste and open bridge the command line and the rest of the Mac.