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

Author:

Zaręba Grzegorz,Zarębski Maciej,Smołka Jakub

Abstract

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.

Publisher

Politechnika Lubelska

Reference8 articles.

1. Globalne statystyki popularności wybranych systemów operacyjnych w latach 2022-2023, https://gs.statcounter.com/os-market-share, [28.06.2023]

2. L. Corral, A. Sillitti, G. Succi. Mobile multiplatform development: An experiment for performance analysis, Procedia Computer Science 10 (2012) 736-743, https://doi.org/10.1016/j.procs.2012.06.094.

3. 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: 10th ACM SIGPLAN International Conference (SLE’17), Vancouver, Canada, October 23– 24, 2017.

4. S. Lee, J. W. Jeon, Benchmarking Java application using JNI and native C application on Android, in: International Conference on Control, Automation and Systems (ICCAS), Gyeonggi-do, Korea (South), October 3-4, 2012, 1160-1163.

5. M. Siggel, How to bring compute intensive C++ base apps to Android, in: Free and Open Source Conference 9 (FrOSCon) Sankt Augustin, Germany, August 23-24, 2014.

同舟云学术

1.学者识别学者识别

2.学术分析学术分析

3.人才评估人才评估

"同舟云学术"是以全球学者为主线,采集、加工和组织学术论文而形成的新型学术文献查询和分析系统,可以对全球学者进行文献检索和人才价值评估。用户可以通过关注某些学科领域的顶尖人物而持续追踪该领域的学科进展和研究前沿。经过近期的数据扩容,当前同舟云学术共收录了国内外主流学术期刊6万余种,收集的期刊论文及会议论文总量共计约1.5亿篇,并以每天添加12000余篇中外论文的速度递增。我们也可以为用户提供个性化、定制化的学者数据。欢迎来电咨询!咨询电话:010-8811{复制后删除}0370

www.globalauthorid.com

TOP

Copyright © 2019-2024 北京同舟云网络信息技术有限公司
京公网安备11010802033243号  京ICP备18003416号-3