The article presents a comparative analysis of Java and C ++ technologies in terms of performance on the Android platform. The research was carried out on custom applications in both languages. The series of repetitions of each test were performed on three research units - Samsung and Xiaomi devices. The following criteria were used: test execution time, CPU load, and RAM usage. The performance, in most of the carried out tests, was in favor of the C++ language, and the main difference and with the greatest discrepancy between the technologies tested was the execution time, where C++ scored 18 points, and Java only 3 points. For the CPU usage, the result was the same, but value differences were much smaller. A nondiscerning parameter that was the use of RAM. C++ received 11 points and Java 10.
References
A. Carvalho, M. Rosan, A. Bianchi, M. Queiroz, FFT benchmark on Android devices: Java versus JNI, Proceedings of the 14th Brazilian Symposium on Computer Music, Brasilia, Brazil (2013) 4-7.
D. K. Kim, Towards performance-enhancing programming for Android application development, International Journal of Contents 13 (2017) 39-46.
A. Ulvesand, D. Eriksson, Native code on Android: A performance comparison of Java and native C on Android. Bachelor’s thesis at NADA, KTH Royal Institute of Technology (2011).
J. Annuzzi, L. Darcey, S. Conder, Android. Wprowadzenie do programowania aplikacji, Helion, Gliwice, 2016.
Historia i ewolucja systemu Android, https://www.androidauthority.com/history-android-os-name-789433/, [08.01.2022].
Udział mobilnych systemów operacyjnych na świecie, https://gs.statcounter.com/os-market-share/mobile/worldwide/#yearly-2010-2022, [08.01.2022].
Oficjalna dokumentacja Android NDK, https://developer.android.com/ndk, [08.01.2022].
S. Lee, J.W Jeon, Evaluating performance of Android platform using native C for embedded systems, Proceedings of the International Conference on Control, Automation and Systems, ICCAS 2010, Gyeonggi-do, South Korea (2010) 1160-1163, https://doi.org/10.1109/ICCAS.2010.5669738.
Oficjalna dokumentacja Android, https://developer.android.com/docs, [10.01.2022].