C++ and Kotlin performance on Android – a comparative analysis

The article discusses the comparison of C++ and Kotlin programming languages in a mobile environment. The authors performed a series of tests based on five selected algorithms: n-bodies, the nth term of the Fibonacci sequence, reading and writing a file, and bubble sort for both small and large set...

Full description

Saved in:
Bibliographic Details
Main Authors: Grzegorz Zaręba, Maciej Zarębski, Jakub Smołka
Format: Article
Language:English
Published: Lublin University of Technology 2024-03-01
Series:Journal of Computer Sciences Institute
Subjects:
Online Access:https://ph.pollub.pl/index.php/jcsi/article/view/5299
Tags: Add Tag
No Tags, Be the first to tag this record!
_version_ 1832570030042120192
author Grzegorz Zaręba
Maciej Zarębski
Jakub Smołka
author_facet Grzegorz Zaręba
Maciej Zarębski
Jakub Smołka
author_sort Grzegorz Zaręba
collection DOAJ
description The article discusses the comparison of C++ and Kotlin programming languages in a mobile environment. The authors performed a series of tests based on five selected algorithms: n-bodies, the nth term of the Fibonacci sequence, reading and writing a file, and bubble sort for both small and large sets of values. The tests were carried out in a way that allowed to determine the performance of the Kotlin language both when it uses the Just-in-Time compilation mechanism and when it is not used. The research was carried out both on a physical mobile device and emulators. Although the C⁠+⁠+ language outclassed its rival in most of the tests performed, Kotlin showed more than three times faster performance when bubble sorting on a small (20,000 values) array.
format Article
id doaj-art-c9915b8489194a19ac93ddb8aa534431
institution Kabale University
issn 2544-0764
language English
publishDate 2024-03-01
publisher Lublin University of Technology
record_format Article
series Journal of Computer Sciences Institute
spelling doaj-art-c9915b8489194a19ac93ddb8aa5344312025-02-02T18:01:32ZengLublin University of TechnologyJournal of Computer Sciences Institute2544-07642024-03-013010.35784/jcsi.5299C++ and Kotlin performance on Android – a comparative analysisGrzegorz Zaręba0Maciej Zarębski1Jakub Smołka2Lublin University of TechnologyLublin University of TechnologyLublin University of Technology The article discusses the comparison of C++ and Kotlin programming languages in a mobile environment. The authors performed a series of tests based on five selected algorithms: n-bodies, the nth term of the Fibonacci sequence, reading and writing a file, and bubble sort for both small and large sets of values. The tests were carried out in a way that allowed to determine the performance of the Kotlin language both when it uses the Just-in-Time compilation mechanism and when it is not used. The research was carried out both on a physical mobile device and emulators. Although the C⁠+⁠+ language outclassed its rival in most of the tests performed, Kotlin showed more than three times faster performance when bubble sorting on a small (20,000 values) array. https://ph.pollub.pl/index.php/jcsi/article/view/5299programming language comparisonC++KotlinJust-In-Time Compilation
spellingShingle Grzegorz Zaręba
Maciej Zarębski
Jakub Smołka
C++ and Kotlin performance on Android – a comparative analysis
Journal of Computer Sciences Institute
programming language comparison
C++
Kotlin
Just-In-Time Compilation
title C++ and Kotlin performance on Android – a comparative analysis
title_full C++ and Kotlin performance on Android – a comparative analysis
title_fullStr C++ and Kotlin performance on Android – a comparative analysis
title_full_unstemmed C++ and Kotlin performance on Android – a comparative analysis
title_short C++ and Kotlin performance on Android – a comparative analysis
title_sort c and kotlin performance on android a comparative analysis
topic programming language comparison
C++
Kotlin
Just-In-Time Compilation
url https://ph.pollub.pl/index.php/jcsi/article/view/5299
work_keys_str_mv AT grzegorzzareba candkotlinperformanceonandroidacomparativeanalysis
AT maciejzarebski candkotlinperformanceonandroidacomparativeanalysis
AT jakubsmołka candkotlinperformanceonandroidacomparativeanalysis