C++ and Java performance on the Android platform
Paweł Wlazło
s96772@pollub.edu.plDepartment of Computer Science, Lublin University of Technology, Nadbystrzycka 36B, 20-618 Lublin, Poland (Poland)
Jakub Smołka
Lublin University of Technology (Poland)
Abstract
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.
Keywords:
Java; C ; performance; AndroidReferences
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.
Google Scholar
D. K. Kim, Towards performance-enhancing programming for Android application development, International Journal of Contents 13 (2017) 39-46.
Google Scholar
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).
Google Scholar
J. Annuzzi, L. Darcey, S. Conder, Android. Wprowadzenie do programowania aplikacji, Helion, Gliwice, 2016.
Google Scholar
Historia i ewolucja systemu Android, https://www.androidauthority.com/history-android-os-name-789433/, [08.01.2022].
Google Scholar
Udział mobilnych systemów operacyjnych na świecie, https://gs.statcounter.com/os-market-share/mobile/worldwide/#yearly-2010-2022, [08.01.2022].
Google Scholar
Oficjalna dokumentacja Android NDK, https://developer.android.com/ndk, [08.01.2022].
Google Scholar
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.
DOI: https://doi.org/10.1109/ICCAS.2010.5669738
Google Scholar
Oficjalna dokumentacja Android, https://developer.android.com/docs, [10.01.2022].
Google Scholar
Authors
Paweł Wlazłos96772@pollub.edu.pl
Department of Computer Science, Lublin University of Technology, Nadbystrzycka 36B, 20-618 Lublin, Poland Poland
Authors
Jakub SmołkaLublin University of Technology Poland
Statistics
Abstract views: 346PDF downloads: 239
License
This work is licensed under a Creative Commons Attribution-ShareAlike 4.0 International License.