Today some of the most popular solutions to build mobile apps are native or cross-platform approaches using React Native or Flutter. While native development is positioned as AAA technical solution, it has some disadvantages that create market space for cross-platform apps to come in. In general, native development requires more effort from the development team to accomplish the project but it gives full control over tricky technical stuff under the hood. On the other hand, if you choose cross-platform, it can significantly speed up the development process due to a common code base, make project support easier and reduce expenses for development.
One more advantage of native over cross-platform development is performance. In the technical world, you can encounter “cross-platform apps are slow” stereotypes. We decided to test if it’s true and to what extend cross-platform apps are slower than native.
There are different types of performance, some of them are:
- Interacting with phone API (accessing photos, file system, getting GPS location and so on).
- Rendering speed (animation smoothness, frames per second while UI is changed or some UI effects that take place in time).
- Business logic (the speed of mathematical calculations and memory manipulations. This type of performance is most important for the apps with complex business logic).
In this article, we share the results of performance tests showing mathematical calculations of number Pi implemented in native and cross-platform approaches.
Memory-intensive test (Gauss–Legendre algorithm) for iOS
- Objective-C is the best programming language for iOS development. Swift is 1.7 times slower compared to Objective C.
- Surprise: Flutter is a bit faster than Swift (on 15%).
- React Native is 20 times slower than Objective C.
CPU-intensive test (Borwein algorithm) for iOS
- Objective C is the best option for iOS app development. Swift is 1.9 times slower compared to Objective-C.
- Flutter is 5 times slower than Swift.
- React Native version is more than 15 times slower than the Swift version.
Memory-intensive test (Gauss–Legendre algorithm) for Android
- Java and Kotlin have similar performance indications and are the best options for Android development.
- Flutter is approximately 20% slower than native.
- React Native is around 15 times slower than native.
CPU-intensive test (Borwein algorithm) for Android
- Java and Kotlin have similar performance indications and are the best options for Android development.
- Native is 2 times faster then Flutter.
- React native is around 6 times slower than native.
- All tests have been done on real physical devices (iPhone 6s IOS 13.2.3 and Xiaomi Redmi Note 5 running under Android 9.0);
- We measured performance on release builds. In some cases, debug builds can be significantly slower than the release builds.
- All tests were run several times and the average result was calculated.
- Gauss–Legendre & Borwein algorithms of calculating Pi numbers were used. The Pi number has been calculated 100 times with 10 million digits precision.
- Gauss–Legendre is a more memory-intensive algorithm in comparison with Borwein, but Borwein is more CPU-intensive.
- Source code
- In summary, not all cross-platform apps are slow. What’s more than that, Flutter apps have higher performance than Swift apps.
- Objective C and Flutter will be a wise choice if you want to develop a super-fast iOS app.
- For the apps with high load calculations Flutter is a good option for both, Android and iOS app development.
Please let inVerita know if you struggle with picking a mobile tool for development, always happy to help.
iPhone 11 Pro Max vs. Galaxy S20 Ultra speed test results are shocking
- Samsung’s top of the line Galaxy S20 Ultra packs 16GB of RAM and goes head to head with Apple’s flagship iPhone 11 Pro Max in an old-fashioned speed test.
- Apple’s top of the line iPhone typically trounces Android competitors, but the S20 Ultra delivers performance that can actually stand up to Apple’s industry-leading A13 Bionic processor.
- The Galaxy S20 Ultra just barely bests Apple’s iPhone 11 Pro Max, but the tides will undoubtedly shift once Apple releases the iPhone 12 later this year.
Given that the modern-day smartphone market is nearly 13 years old at this point, It’s a bit funny that we’re still conducting speed tests with the top smartphones on the market. After all, whether you’re a hardened Android user or partial to the iPhone, the reality is that any flagship you buy today offers up performance that was simply unheard of even a few years ago. Suffice it to say, it’s hard to imagine a scenario where someone plunks down money for a new iPhone or Android device and subsequently complains about sluggish performance.
Still, there can only be one king and, perhaps out of sheer curiosity alone, the public often demands to know which smartphone stands out above all the rest. In light of that, the PhoneBuff YouTube channel recently decided to pit an iPhone 11 Pro Max armed with Apple’s A13 Bionic against a Samsung Galaxy S20 Ultra armed with a Snapdragon 865 from Qualcomm. It’s an old-fashioned speed test and we’re here to see which flagship takes the crown this year.
As a quick point of interest, before we get to the test itself, it’s worth noting that the iPhone 11 Pro Max has 4GB of RAM while the Galaxy S20 Ultra has a whopping 16GB of RAM. This, of course, shouldn’t come as much of a surprise given that Apple has always lagged behind in the RAM department.
With that said, it’s time to dive into the test itself. As evidenced by the video below, Samsung’s Galaxy S20 Ultra gets off to an impressive start and manages to accomplish an array of tasks a tad quicker than the iPhone 11 Pro Max. The iPhone 11 Pro Max, however, starts making a comeback and ultimately takes the lead once the task moves to opening up a 500-page document and conducting calculations in Microsoft Excel.
The iPhone 11 Pro Max, however, starts to lose ground once the task turns to photo editing in Snapseed. From task to task, the iPhone 11 Pro Max and Galaxy S20 Ultra are truly in a close back-and-forth battle. And while this may seem like par for the course, it’s worth noting that Apple’s flagship iPhone models routinely trounce all Android competitors. In short, the S20 Ultra really delivers in the performance department in a way that previous Samsung Galaxy flagships haven’t.
The iPhone ultimately wins the first lap but the S20 Ultra — bolstered by its 16GB of RAM — manages to open previously opened apps in their previous state slightly better than the iPhone. When the dust settled, Samsung’s S20 Ultra managed to eke out a small but yet significant victory over the iPhone 11 Pro Max by about 10 seconds.
Again, the victory here is somewhat symbolic given that Apple’s iPhone 12 will certainly crush the S20 Ultra when it comes to raw performance. Still, it’s a nice, if not somewhat rare, performance victory for Samsung.
Leak says iPhone 12 performance will crush every new Android phone
- The iPhone 12 is expected to feature a brand new Apple A14 processor that should be faster and more efficient than the A13 Bionic in the iPhone 11.
- The A14 series will likely be manufactured by TSMC on a new 5nm process, a first for the industry.
- A new leak says the A14 will be significantly faster than the A13, and therefore considerably faster than any of this year’s top Android devices.
For years, Apple has been at the forefront of chip innovation. The company’s A-series chips that power the iPhone and iPad always outperform same-year Android devices running the latest processors from Qualcomm, Samsung, and other chipmakers. Android has been trying to catch up with the iPhone ever since Apple introduced the first-ever 64-bit chip for mobile devices, and Android phones still are not able to top the iPhone’s impressive performance. The most recent A-series chip is the A13 Bionic processor that powers the iPhone 11 series, which is faster than anything available for Android devices. Benchmark tests showed that the Snapdragon 865 processor that powers the Galaxy S20 and other flagship 2020 Android handsets is no match for the A13. Real-life speed comparisons have proven the same thing when it comes to launching demanding apps or performing intensive tasks. The S20’s enormous amount of RAM does help Samsung compensate for the lack of raw power, but it’s still not enough. The A14 chips that will power Apple’s iPhone 12 phones will be even faster than the A13, delivering performance that’s not likely to be matched by any new Android device this year — and maybe even next year — according to a new leak.
Each new iPhone generation brings a brand new A-series chip that’s not just faster than its predecessor, but also more efficient. The A14 is already expected to be a 5nm processor, and it’ll likely be the first such chip to hit the market this year. TSMC, which manufactured most of the previous iPhone and iPad processors, is expected to mass-produce the 5nm CPU for the iPhone 12.
A first A14 benchmark just found its way online, Research Snipers reports, revealing the Geekbench 5 scores for the new chip.
The A14 seemingly scored 1658 and 4612 points in single- and multi-core scores, respectively, which are both significant increases over the A13, which gets 1329 and 3468 ratings in the same tests. We’re looking at speed increases of between 25% and 33% over last year’s model, which already outscores the Snapdragon 865 (Qualcomm), Exynos 990 (Samsung), and Kirin 990 (Huawei).
This new report also notes that the A14 chip will apparently be clocked at 3.1GHz, which is 400MHz higher than the A13’s 2.7GHz speed. Apple never makes a big deal of such details when talking about its ARM processors that power the iPhone and iPad. But if this leak is accurate, the A14 will be the first ARM processor to pass 3GHz. That’s an important milestone for mobile chips, especially considering all the chatter that says Apple is working on its first ARM-powered MacBook. The most recent A-series chip generations have scored better in benchmarks than the Intel chips that power the MacBook Pro, prompting speculation that an ARM MacBook is imminent.
Even if this new leak isn’t accurate, the A14 is still expected to significantly outperform its predecessor thanks to the jump to the new 5nm process. The report doesn’t say how efficient the A14 chip will be compared with the A13, but that’s probably the kind of information only Apple has access to.
A variation of the A14 is likely to power future iPad Pros, but that’s just speculation at this point. Apple is expected to unveil an iPad Pro refresh this spring, with the A13X being the likely CPU candidate for the new tablets. Meanwhile, the iPhone 12 should be unveiled this fall, probably in mid-September like previous models, but the COVID-19 coronavirus pandemic may impact the launch event and the actual release date of the upcoming new iPhone 12 handsets.
iPhone 12 might get lightning-fast new charging tech
We’ve seen incredible upgrades in processing speeds, graphical power, and camera functionality on smartphones in recent years, but one of the features that repeatedly ends up at the top of the most-wanted list for many consumers is longer battery life. It is difficult to take advantage of all the improvements on your phone if the device is always on life support, which is why some of the biggest vendors in the market are thinking of making a major change.
IT Home reports that Apple, Huawei, OPPO, and Samsung all plan to use gallium nitride (GaN) technology for faster charging solutions. One paper even went as far as to claim that “this year, several manufacturers of the same size as Xiaomi will release GaN power adapters,” possibly referring to the vendors above.
Could Apple be thinking about releasing a GaN power adapter alongside the iPhone 12?
While GaN technology is similar to silicon, a GaN charger requires fewer components and can sustain higher voltages than silicon. Plus, current runs through a GaN device faster. We won’t get into the nitty-gritty, but GaN chargers simply perform better than their silicon counterparts in virtually every conceivable way.
If you want to see just how much of a difference gallium nitride makes, look no further than the new Xiaomi GaN USB Type-C 65W charger, which is capable of charging the Xiaomi Mi 10 Pro from 0% up to 100% in just 45 minutes. The company also notes that the accessory will charge the iPhone 11 50% faster than the 5W charger that comes in the box. But imagine how much faster it would be if these phones actually supported 65W fast charging?
As you can see in the image at the top of this article, the Xiaomi 65W GaN charger is incredibly compact, especially considering just how much more powerful it is than 45W chargers. It’s hard to imagine Apple releasing a GaN power adapter in 2020, as we were shocked to receive an 18W adapter in the iPhone 11 Pro and 11 Pro Max boxes last year, but even Apple’s purportedly interest in the technology is a step in the right direction.