When you buy a new phone, you might reasonably want to know how long it's going to get software updates. This chart helps you get an idea of what each platform is like by examining iOS vs. Nexus support lifetimes.
This chart from Android Police examines how long each iOS and Nexus device continues to receive updates. While the chart doesn't examine the quality of those updates -- on older devices, some updates may lack features or even make phone performance worse -- it paints a pretty clear picture of how long you can expect a device to be supported.
On average, iOS devices have longer support times. Nexus devices haven't done as well in the past, though the future may be less clear, as many of the longest-supported devices are still supported to this day, so we don't know when they will be cut off. It's worth keeping in mind, however, that Nexus devices are typically supported far longer than most Android devices. If nothing else, this is a pretty strong message that Android OEMs need to step up their game.