Comparative analysis of code execution time by C and Python based on selected algorithms
Main Article Content
DOI
Authors
Abstract
The article deals with a comparative analysis of the speed of code execution written in the C language and Python. In order to determine whether a scripting language can match the performance of a compiled language, a comparison of the languages was made using the following algorithms: the algorithm for solving the Hanoi tower problem, the Huffman encoding algorithm and the algorithm for converting numbers into text. Each of the listed algorithms was implemented in both languages. Then the execution time of the programs was measured and the results were obtained, which prove that the C language achieves better performance in most cases.
Keywords:
performance; algorithms; C; Python
Article Details
Rysak, P. (2023). Comparative analysis of code execution time by C and Python based on selected algorithms. Journal of Computer Sciences Institute, 26, 93–99. https://doi.org/10.35784/jcsi.3109