Treffer: Performance of Parallelism in Python and C++.

Title:
Performance of Parallelism in Python and C++.
Authors:
Arboleda, Francisco Javier Moreno1 fjmoreno@unal.edu.co, Arias, Mateo Rincón2 marinconar@unal.edu.co, Riveros, Jesús Antonio Hernández3 jahernan@unal.edu.co
Source:
IAENG International Journal of Computer Science. Jun2023, Vol. 50 Issue 2, p579-591. 13p.
Database:
Supplemental Index

Weitere Informationen

In this paper, we evaluate the performance of parallelism in Python and C++. Parallel programming can be achieved in Python through the multiprocessing module and in C++ by means of OpenMP directives. For the performance comparison, we use implementations, in parallel and sequential, of three algorithms: frequency (count the occurrences) of an integer in an unsorted array, matrix transposition, and matrix addition. Our goals are i) to show the performance of the algorithms in their parallel and sequential implementations, in Python with multiprocessing and in C++ with OpenMP and ii) to show the importance of selecting the programming language and libraries when programming in parallel. Our experiments showed that, in general, C++ outperformed Python. Additional experiments with the naïve matrix multiplication algorithm confirmed this conclusion. [ABSTRACT FROM AUTHOR]