How much RAM your phone needs is a relatively obscure issue, and in particular the difference in approach between iPhone and Android phones in this area should be noted. do. Smartphones rely on RAM to maintain the operating system, run applications and their data, and so on. RAM management is very important because if it is done well, users can get the best performance from different applications. Simply put, when an application runs, it takes up some of the RAM space, and when the app closes completely, the space is restored to the operating system.
When there is free space in Rome to run new apps, there is no problem. But when it comes to free RAM, how do iOS and Android work? For this reason, we will compare the RAM management of iPhone and Android phones.
A brief history of Apple and Android RAM management
At the beginning of Android phones And the iPhone, these phones were not much different in terms of RAM capacity. HTC Dream, for example, uses only 192 MB of RAM, and the first iPhone with 128 MB of RAM was launched. Apple also used 128 MB of RAM for the iPhone 3G and 3GS, but since 2009, Apple has increased the amount of RAM in the iPhone to 256 MB. But with the iPhone 4, this capacity doubled, and again for the iPhone 5. Apple continued to use 1 GB of RAM until 2015, but the iPhone 6S came with 2 GB of RAM. Finally, we have to mention the Pro iPhone 13 models that have come to the market with 6 GB of RAM.
There are a variety of Android phones in the ecosystem, but to examine the trend of increasing RAM capacity, we turn to the Samsung Galaxy S series phones. The first phone in the series was released in 2010 with 512 MB of RAM, and the Galaxy S2 was based on 1 GB of RAM. In 2012, the most expensive model of the Galaxy S3 uses 2 GB of RAM, Which was repeated for the S4. From this year on, the difference between the RAM capacity of the iPhone and Android phones increased day by day. Specifically, Samsung switched to 2GB of RAM two years earlier than Apple, and now users can buy the Galaxy S22 Ultra with 16GB of RAM as well.
Such a difference in RAM capacity It has caused various users to utter phrases such as "iPhones have better RAM management and therefore do not need much high RAM capacity". On the surface, this may seem like allot, but it's not the case. The difference in the approach to using RAM is more related to Android's decision to use the Java programming language than to optimization.
Objective-C/Swift versus Java/Kathleen programming languages strong>
When you write an app developer for iOS, directly Compiles code that can be executed on the iPhone processor. The code in question is called "native" code because it does not require any separate interpretation or virtual environment to execute. But Android is not like that. The operating system uses the Java programming language and when the Java code is compiled, it is converted into an intermediate code called Java Bytecode, Which is processor-independent. Therefore, the same code can be run on an Arm processor, x86 processor, or a processor based on the RISC-V architecture. Java's motto is "Write once, run everywhere", and this approach has many advantages for compatibility between platforms.
However, Java has one drawback. The operating system and processor require a "runtime environment", Which in Java is called the "Java Virtual Machine" (JVM); This environment understands Java Bytecode and converts the desired code into native code suitable for the processor. This was initially done by an interpreter, meaning that each part of the Bytecode was read and executed, and then the same was done for the following parts. But over time, better methods were developed to increase the speed and productivity of the process.
But no matter how good the new methods are, two problems remain. First, native code works better than code executed through JVM. Secondly, just using the JVM environment leads to an increase in application RAM. Below you can see the amount of RAM used by some applications in Android and iOS environments:Name of iOS application (MB) Android (MB) Play Store/App Store 235 217 Acrobat Reader 117 390 Booking.com 73 330 Gmail 190 259 Google Maps 224 300 YouTube 176 282 eBay 69 300 Google Photos 136 281 Twitter 100 366
As you can see, iOS apps use less RAM as a whole, Which in some cases is about 70% different from Android models. But if we consider the average RAM consumption, their RAM consumption is about 40% less than Android. So if the iPhone 13 Pro uses 6GB of RAM, an Android flagship will need 8GB of RAM to run the same apps.
However, not all Android apps use JVM. Some of them are based on native code, Which is usually the case with games; Because the games do not use the Android user interface or the frameworks of this operating system. Android allows game developers to convert their code directly to CPU-specific binary code without the need for a JVM environment to execute it. All popular game development tools such as Unity and Unreal compile game code as native code without the need for JVM.
In this regard, you can now see the amount of RAM used by some games on iOS and Android. See:iOS game name (MB) Android (MB) Subway Surfers 500 761 1945 Airforce 550 852 Candy Crush 219 289 Brawl Stars 572 507 Minecraft 462 803 Asphalt 9 749 803 Shadowgun Legends Eld32 Impact 1270 1400
In this table, the situation has changed and some games in Android consume less RAM than iOS. However, on average, iOS games consume about 10% less RAM than Android. The same numbers indicate the result of abandoning the JVM and the Android user interface. Of course, the same 10% difference is a significant figure, but on the other hand, we must note that to run games, things like screen resolution, texture compression and many other details are also implemented. But in the end, the main point is that for gamers, the amount of RAM consumed in iOS and Android are not much different.
- 5 misconceptions about RAM that you should put aside
How much RAM is ideal for iPhone?
When we talk about the ideal capacity of RAM for a phone, we must first define what we mean by ideal. When it comes to managing RAM, what matters is how many apps and games can be in RAM at the same time and stay active? In other words, how many apps and games can users switch between without having to reload? So the ideal capacity of RAM largely depends on how the user uses it.
When you run an application but the RAM does not have free capacity, iOS first compresses some of the memory blocks that have not been used for some time, and Once again puts this information in Rome. If this does not free up enough RAM, iOS will eventually remove one of the apps completely from RAM. In the chart below, you can see the process of RAM used and compressed by running various applications on the iPhone SE 2, Which uses 3 GB of RAM:
Initially, iOS only compressed about 200 MB of RAM and used just over 2 GB of RAM. Then, with the implementation of various applications, the amount of RAM consumption and the amount of compression will increase. After running 13 apps, iOS has not yet removed any of them from RAM, but to increase the pressure, in this test, the Safari browser was finally opened, and by opening 5 different tabs, iOS was finally forced to remove the Keynote app from RAM. Games generally use more RAM than apps, and the iPhone SE 2 can hold four games, Subway Surfers, Candy Crush, Brawl Stars, and 1945 Airforce, in Rome at the same time. But when the fifth game, Asphalt 9, was released, iOS dropped two games, Subway Surfers and 1945 Airforce, from RAM to provide enough capacity for the game.
Naturally, when the iPhone has more RAM capacity. , The rate of expulsion of games from Rome is also reduced. For example, below you can see the performance of games on the iPhone 13 Pro, Which uses 6 GB of RAM:
The iPhone 13 Pro 2 has the same RAM capacity as the iPhone SE 2, so it can hold more games in RAM at the same time. According to the chart, when Genshin Impact was released, iOS could no longer compress more data because by then more than 2 GB of data had been compressed, so three games, Subway Surfers, Brawl Stars and 1945 Airforce, were taken out of RAM to capacity. Create the requirements for the new game.
For people who are mainly from related applications Productivity and social networking use, the iPhone with 3 GB of RAM meets their needs. But if you are looking to buy a new iPhone and you are not interested in the SE model, all new models use at least 4 GB of RAM. But if you are one of those users who always want to have several games ready on your iPhone so that you do not waste a lot of time to play them, then it is better to buy iPhones with 6 GB of RAM.
How much RAM is ideal for Android?
We said at the beginning of this article that Android apps generally consume more RAM than iOS apps. This means that Android itself and its default applications consume more RAM, and from the beginning, more of the RAM capacity is occupied. In Android, as in iOS, data is first compressed to manage RAM. Regarding the desired capacity for games, you can see the diagram of the 3xx pixel based on 4 GB of RAM below:
This phone, although it uses 4 GB of RAM, but in fact 3579 MB is available. By running the first game, all the RAM capacity is used and by opening more games, the RAM compression increases. When Brawl Stars is running, about 1.5 GB of data is compressed in RAM, but in the end this compression is not enough and Subway Surfers is thrown out of RAM.
But for a phone like the Galaxy S21 Ultra with 12 GB of RAM The situation is completely different:
More RAM means that more games can Stay in Rome at the same time. As you can see, 12 GB of RAM is perfect for professional gamers. In this test, all games from Subway Surfers to Genshin Impact remain in Rome. After running Shadowgun Legends, the amount of RAM compression has increased significantly.
If from an Android phone only for tasks such as running multiple You use the application and you are not very good at surfing and playing different games, 4 GB of RAM covers your needs. But in general, it is recommended to buy a model based on at least 6 GB of RAM to buy an Android phone so that you do not have problems running a number of applications and games at the same time. Recommended. As for the 12 GB of RAM, as you can see, this amount of RAM is quite ideal for professional users and people who are very interested in playing different games at the same time. Given these circumstances, we have to say that 16 GB of RAM is only suitable for advertising and boasting, and a capacity of more than 12 GB is considered extra.
Which RAM management is better; iOS or Android?
Both iOS and Android use data compression to overcome RAM limitations. These two operating systems do this process very quickly, but in general, Android compresses more data before removing apps and games from RAM. However, because iOS uses native code, iOS apps and the operating system itself are smaller. This is less important for games, but in the end we can not ignore it.
Simply put, the iPhone 13 Pro with 6 GB of RAM is enough for professional users and gamers. Although its RAM performance is not as good as the Galaxy S21 Ultra, on the other hand, we must say that the RAM capacity of the Samsung phone is twice the RAM of the iPhone in question. Meanwhile, the iPhone with 6 GB of RAM has a much better performance than the Android phone based on the same RAM capacity. With that in mind, if you want to experience the same RAM performance as the 6GB iPhone, you have to buy an Android phone with 8GB of RAM.
What do you think? If you have experience using iPhones and Android phones, do you think these tests show the difference in their RAM management? Leave your comments with us and others in the comments section.
- How much RAM will Android phones need in 2022?
Source: Android Authority