I assume you are referring to the "speed test" that is on YouTube where some guy runs a few apps by opening and closing them. Only the "first lap" is testing the hardware speed and to me, they are close if not equal.
The other laps are testing how many apps stay in ram, so they can be loaded faster. On iOS, after 3 min, the OS closes those apps (that's why fb app plays silent audio) and they are not still in ram (software issue), that's why the guy does the test as a "race". In real life, people don't use apps like that.
On Samsung's note 7, they have aggressive ram management to close unused apps to save battery. I suspect if they guy went into the settings to "favorite" those apps (so they don't auto close) and redid the test, it would be closer. (Settings -> device maintenance -> battery -> unmonitored apps)