I think it’s weird to say Apple is faster than Xiaomi when both are just using arm chips and using TSMC to build them, and this chip is only any faster because TSMC made a smaller node.
I know Apple do some special hardware software integration magic too.