Calculate wifi speed on mac from terminal

Hi Team,


We are looking to calculate wifi speed from terminal command and then we intend to run this command from python script for automation.


Currently we use networkquality -v to get downlink and uplink speed , which gives us the required data but takes too many iterations and consumes too much data.since we are looking to run this command with automation every 5 minutes, we want to run this command with minimum iterations and less data.


Please help us how can we use the above command to get upload and download wifi speed for the same or Is there any other build in command that we can use for the same purpose?

iPhone 14 Pro Max, iOS 17

Posted on Oct 25, 2023 6:20 PM

Reply
Question marked as Best reply

Posted on Oct 25, 2023 6:36 PM

networkQuality is the typical tool here, yes:


Test Wi-Fi networks with Apple Network Responsiveness - Apple Support


https://den.dev/blog/speed-test-macos-networkquality/


Characterizing a network link in a user-level app every five minutes is unusual.


You could use another tool, or could write your own network characterization tool here, of course.


https://github.com/sivel/speedtest-cli

2 replies
Question marked as Best reply

Oct 25, 2023 6:36 PM in response to anilkumarjava

networkQuality is the typical tool here, yes:


Test Wi-Fi networks with Apple Network Responsiveness - Apple Support


https://den.dev/blog/speed-test-macos-networkquality/


Characterizing a network link in a user-level app every five minutes is unusual.


You could use another tool, or could write your own network characterization tool here, of course.


https://github.com/sivel/speedtest-cli

Calculate wifi speed on mac from terminal

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple ID.