Java and Kotlin code performance in selected web frameworks


Abstract

This paper discusses the issue of comparing Java and Kotlin technologies based on the web application framework. The criteria taken into account for testing purposes are: execution time, memory usage, CPU load, database response in set time. A series of tests and their in-depth comparative analysis are carried out. For this case, tests and code analysis were carried out to draw comparative conclusions. The performance in terms of web frameworks, database response speed and tests implementation in different languages - in all these Kotlin proved to be less efficient. There is no significant difference between CPU load between individual easurements, the difference does not exceed 2%. Implementation in the Kotlin language has never achieved the best result in any group of measurements.


Keywords

Kotlin; JVM; Java; Benchmark

M. Martinez, B. Gois. How and Why did developers migrate Android Applications from Java to Kotlin? A study based on code analysis and interviews with developers, arXiv preprint arXiv:2003.12730 (2020).

S. Bose, A comparative study: java vs kotlin programming in android application development, International Journal of Advanced Research in Computer Science (9) (2018) 41-45.

T. Kalibera, R. Jones, Rigorous benchmarking in reasonable time, in Proceedings of the 2013 international symposium on memory management (2013) 63-74.

I. Gouy, The Computer Language Benchmarks Game. Web. https://benchmarksgame-team.pages.debian.net/benchmarksgame/).

A. Prokopec, Oracle Labs: On Evaluating the Renaissance Benchmarking Suite: Variety, Performance, and Complexity, arXiv preprint arXiv:1903.10267 (2019).

P. Alfeld, The Mandelbrot Set (https://www.math.utah.edu/˜alfeld/math/mandelbrot/mandelbrot.html)

D. Stepanov, M. Akhin, M. Belyaev, How We Stopped Worrying About Bugs in Kotlin Compiler, in 34th IEEE/ACM International Conference on Automated Software Engineering (ASE), IEEE (2019) 317-326.

B. G. Mateus, M. Martinez, An empirical study on quality of Android applications written in Kotlin language, Empirical Software Engineering (2019) 3356-3393.

D. J. Lipman, W. R. Pearson, Rapid and sensitive protein similarity searches, Science 227 (4693) (1985) 1435–1441.

TIOBE index (https://www.tiobe.com/tiobe-index/)

Download

Published : 2020-09-30


Bujnowski, G., & Smołka, J. (2020). Java and Kotlin code performance in selected web frameworks. Journal of Computer Sciences Institute, 16, 219-226. https://doi.org/10.35784/jcsi.2025

Grzegorz Bujnowski  grzegorz.bujnowski@pollub.edu.pl
  Poland
Jakub Smołka 
Lublin University of Technology  Poland