29 January 2024

How to Check Internet Speed via Terminal on macOS Monterey

By Ronald Smith

Hey there, Mac users! Did you know that you can easily check your internet speed using the command line? It’s true, and it’s super simple. I’m going to show you how in just a moment. All you have to do is enter one command: networkQuality. That’s it!

When you run this command, it will not only display your upload and download speed, but also give you information about the flow of data and the responsiveness of your internet connection. Pretty cool, right? But wait, there’s more!

If you’re interested in learning some new tricks, keep reading. I’ve got a few extra tips up my sleeve.

Before we get started, make sure you’ve upgraded to the latest macOS Monterey. Also, check that your Mac is from 2015 or later and meets the system requirements.

Here’s how to run the command:

Don’t worry, it’s a piece of cake. Just follow these steps:

How to Check Internet Speed via Terminal on macOS Monterey

First, let’s get started by opening Terminal. You can find it in your dashboard or simply press Command + Space and search for “Terminal” in Spotlight (Spotlight is the search function that appears when you press Command + Space).

Once you have Terminal open, type in “networkQuality” and hit Return.

After a few seconds, the results will appear, just like the ones below:

  1. Here are some terms that might make things clearer:

RPM stands for Round-trips Per Minute. It refers to how many packets or transactions your connection can handle in one minute. The higher the RPM, the better your connection is.

  • If your RPM is high, it means your network is working smoothly, regardless of the number of devices or apps being used. There’s no congestion.

If you’re wondering about network quality, there are a few terms you should know. The first one is High. This means your connection is strong and stable, with fast upload and download speeds. You can stream videos, video chat, and download files with ease.

On the other hand, Medium means there might be some hiccups if you’re streaming a movie or using FaceTime. Your downloads might also be slower or inconsistent.

Lastly, we have Low. This means the network is congested because multiple apps are using it at the same time. Your bandwidth is limited, which can lead to slower speeds and poor performance.

Now, let’s talk about flows. Flows refer to the number of test packets sent to measure the download and upload capacity of your connection. It’s like sending and receiving information to see how well your connection can handle it.
Lastly, we have upload and download capacity. This is basically the speed at which you can upload or download data. You can check your capacity using test sites like Speedtest by Ookla.

By default, when you use the networkQuality command, it tests your connection against a default server. However, if you want to test it against your own server, you can do so like this:

To use networkQuality, follow this command: networkQuality -C https://mynetwork.com:8443/config

By default, when you run networkQuality, it tests Apple’s CDN at https://mensura.cdn-apple.com/api/v1/gm/config.

Keep in mind that networkQuality runs tests concurrently. However, if you prefer sequential testing, you can use this command: networkQuality -s

If you need more guidance or details about the commands, you can run: man networkQuality

If you’re curious about the support and development of this feature, visit Network Quality’s GitHub page. As a developer, you can also contribute by forking the code, running your own tests, and sharing your findings with others.