Powiadomienia systemowe
- Sesja wygasła!
Tytuł artykułu
Treść / Zawartość
Pełne teksty:
Identyfikatory
Warianty tytułu
C++ and Kotlin performance on Android – a comparative analysis
Języki publikacji
Abstrakty
Artykuł porównuje języki programowania C++ i Kotlin w środowisku mobilnym. Autorzy wykonali serie testów w oparciu o pięć wybranych algorytmów: n-ciał, n-ty wyraz ciągu Fibonacciego, odczyt i zapis do pliku oraz sortowa-nie bąbelkowe dla małych oraz dużych zbiorów. Testy wykonano w sposób pozwalający określić wydajność języka Kotlin zarówno kiedy wykorzystuje on mechanizm kompilacji Just-in-Time, jak również gdy nie jest on używany. Badania przeprowadzono zarówno na fizycznym urządzeniu mobilnym, jak również emulatorach. Jakkolwiek język C++ zdeklasował rywala w większości wykonanych testów, Kotlin wykazał się ponad trzykrotnie większą szybkością działania przy sortowaniu bąbelkowym na małej (20 tysięcy wyrazów) tablicy.
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.
Czasopismo
Rocznik
Tom
Strony
21--25
Opis fizyczny
Bibliogr. 8 poz., rys.
Twórcy
autor
- Lublin University of Technology (Poland)
autor
- Lublin University of Technology (Poland)
autor
- Lublin University of Technology (Poland)
Bibliografia
- 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.DOI: 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.DOI: https://doi.org/10.1145/3136014.3136031
- 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.
- 6. What Is C++ Used For? https://www.codecademy.com/resources/blog/what-is-c-plus-plus-used-for/, [30.05.2023].
- 7. Kotlin for Android, https://kotlinlang.org/docs/android-overview.html, [22.06.2023].
- 8. N-body simulation – Wikipedia, https://en.wikipedia.org/wiki/N-body_simulation, [22.06.2023].
Uwagi
Opracowanie rekordu ze środków MNiSW, umowa nr POPUL/SP/0154/2024/02 w ramach programu "Społeczna odpowiedzialność nauki II" - moduł: Popularyzacja nauki (2025).
Typ dokumentu
Bibliografia
Identyfikator YADDA
bwmeta1.element.baztech-20f301c8-bdc7-428b-9685-2d1718f34cc4
JavaScript jest wyłączony w Twojej przeglądarce internetowej. Włącz go, a następnie odśwież stronę, aby móc w pełni z niej korzystać.