It's nearly impossible to compare raw specs when Apple is making their own chips. Android devices have had more cores and more Hertz than the iPhone for years, but only recently have they been able to start matching the iPhone in performance… that's that was entirely because of faster software.