How to compare the performance of Android Apps written in Java and Xamarin C#? Anyway to check quantitative data (code & results)

How to Compare the Performance of Android Apps Written in Java and Xamarin C#?
Are you curious about the performance difference between Android apps written in Java and Xamarin C#? 🤔 Do you want to know if Xamarin's claim of faster performance holds true? 🚀 In this blog post, I will guide you through the process of comparing the performance of Android apps written in Java and Xamarin C#. I will provide you with quantitative data, code examples, and results to help you make an informed decision. Let's dive in!
The Context and the Test
A user asked if anyone had performed benchmarks on similar Java and C# code on different Android platforms. They were specifically interested in verifying Xamarin's claim of faster performance.
While there were no existing benchmarks available, the user decided to conduct their own tests. They used Xamarin.Android Ver. 4.7.09001 (beta) and shared the source code, test data, and compiled APK packages on GitHub.
If you are interested in reproducing their tests on other devices or emulators, you can find the code and data on GitHub. Feel free to explore and contribute to their project if you'd like.
The Results
The user tested the performance of their code on various devices and emulators. Here are the results they obtained:
HTC Nexus One Android 2.3.7 (API 10) - CyanogenMod ROM
Java: Grand total time (5 runs): 12361 ms, with file reading total: 13304 ms
C#: Grand total time (5 runs): 17504 ms, with file reading total: 17956 ms
Samsung Galaxy S2 SGH-I777 (Android 4.0.4, API 15) - CyanogenMod ROM
Java: Grand total time (5 runs): 8947 ms, with file reading total: 9186 ms
C#: Grand total time (5 runs): 9884 ms, with file reading total: 10247 ms
Samsung GT-N7100 (Android 4.1.1 JellyBean, API 16) - Samsung ROM
Java: Grand total time (5 runs): 9742 ms, with file reading total: 10111 ms
C#: Grand total time (5 runs): 10459 ms, with file reading total: 10696 ms
Emulator - Intel (Android 4
Take Your Tech Career to the Next Level
Our application tracking tool helps you manage your job search effectively. Stay organized, track your progress, and land your dream tech job faster.



