I think a lot of the performance gain is due to switching from an aging 2017 Intel processor to a modern processor on a recent TSMC node (5nm in Apple's case).
Had Apple switched to AMD Ryzen processors on TSMC's 7nm node the performance improvement will have been similarly stark.
Had Apple switched to AMD Ryzen processors on TSMC's 7nm node the performance improvement will have been similarly stark.