Author:
Tylec Sylwester,Woś Karol
Abstract
This paper aims to test Swift's performance against C++ in performing statistical calculations. The analyzed issues, apart from performance, are code transparency and syntax, libraries available for these languages and the use of device hardware resources during testing. For this purpose, a comparative analysis of the two above-mentioned languages was carried out, based on the results obtained from a series of experiments carried out with the use of specially developed test applications. The tests consisted in calculating the standard deviation, median and arithmetic, harmonic and geometric mean, and during the tests, execution times, operating memory usage and CPU load were recorded. Based on the results of the research, it was found that the Swift language is not optimized for statistical calculations.
Subject
Polymers and Plastics,General Environmental Science
Reference9 articles.
1. Oficjalna dokumentacja języka Swift, https://www.swift.org/documentation, [15.06.2022].
2. Oficjalna dokumentacja języka C++, https://docs.microsoft.com/pl-pl/cpp/cpp/?view=msvc-170, [15.06.2022].
3. J. Hoffman, Swift 4. Koduj jak mistrz, Helion, Gliwice, 2018.
4. S. Prata, Język programowania C++. Szkoła programowania, Helion, Gliwice, 2012.
5. R. Baida, M. Andriienko, M. Plechawska-Wójcik, Analiza porównawcza wydajności frameworków Angular oraz Vue.js, Journal of Computer Sciences Institute 14 (2020) 59-64, https://doi.org/10.35784/jcsi.1577.