The first time through the race, the iPhone is the clear winner. The second time through, the Galaxy S20 takes over.
What changed? RAM.
The Galaxy S20 has 12 GB of DDR5 RAM, the iPhone 11 Pro Max, only 4 GB of DDR4x RAM. Watch the speed test, keep that more/faster RAM in mind.