sysctl -n machdep.cpu.brand_string
Intel(R) Core(TM) i7-8750H CPU @ 2.20GHz
system_profiler | grep Processor
Apple: AUDynamicsProcessor:
IOSlaveProcessor:
Bundle ID: com.apple.driver.IOSlaveProcessor
Location: /System/Library/Extensions/IOSlaveProcessor.kext
Processor Name: Intel Core i7
Processor Speed: 2.2 GHz
Number of Processors: 1