The iPhone 7 had less memory than the Galaxy S7 this year. Despite that, it could run more programs faster than the S7. Quote from a comparison of the 2 phones from DigitalTrends.com:
"Turning to benchmarks, the iPhone 7 wins by a landslide. The iPhone 7 scored a whopping 178,397 on AnTuTu's benchmarks, putting pretty much every other smartphone out there to shame. The Galaxy S7 scored 134,599, which still puts it ahead of most other phones out there, but it can't keep up with the new iPhone. "
There are a lot of things you can complain about with iPhones in general and the iPhone 7 in particular, but performance vs Android phones isn't one of them. The best Android has more memory but the iPhone can run more apps and switch between them faster. If you're going to compare you should highlight having an sd card slot, a headphone jack and longer battery life, because the extra memory isn't giving you better speed, allowing more apps to be open, or running those apps faster.