Performance comparison of the Java and Kotlin programming languages based on an auto-scroller mobile game
Piotr Gajek
piotr.gajek@pollub.edu.plLublin University of Technology (Poland)
Małgorzata Plechawska-Wójcik
Lublin University of Technology (Poland)
Abstract
The article contains a performance comparison of two mobile applications, developed in the Java and Kotlin programming languages respectively. The applications took the form of an auto-scroller game and shared their graphics assets. The aim of the work was to confirm or reject the hypothesis: Java is slightly more efficient than Kotlin in the presented context. The subject of comparison was the consumption of CPU, RAM and the device’s battery resources. The mentioned metrics were obtained using the Android Profiler tool. The study was conducted using two mobile devices. The results confirm the research hypothesis.
Keywords:
mobile application, performance comparison, Java, KotlinReferences
S. Bose, A. Kundu, M. Mukherjee, M. Banerjee, A Comparative Study: Java vs Kotlin Programming in Android Application Development, International Journal of Advanced Research in Computer Science 9 (2018) 41-45, https://doi.org/10.26483/ijarcs.v9i3.5978.
Google Scholar
K. Wasilewski, W. Zabierowski, A Comparison of Java, Flutter and Kotlin/Native Technologies for Sensor Data-Driven Applications, Sensors 21 (2021) 3324 - 3340, https://doi.org/10.3390/s21103324.
Google Scholar
L. Corral, A. Sillitti, G. Succi, Mobile multiplatform development: An experiment for performance analysis, Procedia Computer Science 10 (2012) 736–743, http://doi.org/10.1016/j.procs.2012.06.094.
Google Scholar
T. Bryksin, V. Petukhov, K. Smirenko, N. Povarov, Detecting Anomalies in Kotlin Code, International Symposium on Software Testing and Analysis (2018) 10-12, http://doi.org/10.1145/3236454.3236457.
Google Scholar
N. Everlönn, S. Gakis, Java and Kotlin, a Performance Comparison, Bachelor thesis, Kristianstad University, 2020.
Google Scholar
W. H. Li, D. R. White, J. Singer, JVM-hosted Languages: They Talk the Talk, but Do They Walk the Walk?, In Principles and Practice of Programming in Java Conference (2013), 101-112.
Google Scholar
R. Pereira, M. Couto, F. Ribeiro, R. Rua, J. Cunha, J. P. Fernandes, J. Saraiva, Energy efficiency across programming languages: how do energy, time, and memory relate?, In SPLASH: Systems, Programming, and Applications Conference (2017), 256–267.
Google Scholar
J. Espitia-Acero, M. Linares-Vásquez, Empirical Testing for Establishing Benchmarks: Process Review and Comparison Between Java, Kotlin and Dart’s Performance, Bachelor thesis, Universidad de los Andes, 2020.
Google Scholar
J. A. E. Gonzalez, M. Linares-Vásquez, Comparative Performance Evaluation for Android Programming Languages, Bachelor thesis, Universidad de los Andes, 2019.
Google Scholar
Edytor grafiki wektorowej Inkscape, https://inkscape.org/.
Google Scholar
Oficjalne zintegrowane środowisko programistyczne Android Studio, https://developer.android.com/studio/.
Google Scholar
Dokumentacja narzędzi Android Profiler, https://developer.android.com/studio/profile.
Google Scholar
Authors
Małgorzata Plechawska-WójcikLublin University of Technology Poland
Statistics
Abstract views: 29PDF downloads: 22