Find Clock Speed on M1 Mac

Attempting to find nominal CPU clock frequency. Previously have been finding this using sysctlbyname() with name="hw.cpufrequency" or with sysctl() with name[0]=CTLHW and name[1]=HWCPU_FREQ. I also notice that processor speed no longer shows in 'About this Mac'. Anyone know I programmatically find this value on an M1 machine?

Replies

You can use Geekbench 5 to check the clockspeed. I'm using Macbook Pro M1, it shows 2,4GHz. I don't know why its has different with the commercial ads in here https://www.apple.com/mac/m1/

Hope it helps.
Add a Comment

Try this:

sudo /usr/bin/powermetrics -s cpu_power -n 1 | grep '^cpu [0-9]+ frequency: '