It's true, a recent MBP will destroy the iPhone or iPad in a benchmark. You can't compare Apples to oranges with CPU speeds alone. However, you can run a benchmark. And on a popular one, GeekBench, the iPhone generally beats the non-Pro MacBook.
And:
"The iPhone 7 scores better on both single- and multi-core than any MacBook Air ever made, and performs comparably to a 2013 MacBook Pro."
https://browser.primatelabs.com/v4/cpu/2385400
https://browser.primatelabs.com/geekbench3/6170528
https://9to5mac.com/2016/09/15/iphone-7-geekbench-benchmark-...