Performance of Parallelism in Python and C++
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 algori...
        Saved in:
      
    
          | Published in | IAENG international journal of computer science Vol. 50; no. 2; p. 579 | 
|---|---|
| Main Authors | , , | 
| Format | Journal Article | 
| Language | English | 
| Published | 
        Hong Kong
          International Association of Engineers
    
        22.05.2023
     | 
| Subjects | |
| Online Access | Get full text | 
| ISSN | 1819-656X 1819-9224  | 
Cover
| Abstract | 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. | 
    
|---|---|
| AbstractList | 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. | 
    
| Author | Arboleda, Francisco Javier Moreno Riveros, Jesús Antonio Hernández Arias, Mateo Rincón  | 
    
| Author_xml | – sequence: 1 givenname: Francisco surname: Arboleda middlename: Javier Moreno fullname: Arboleda, Francisco Javier Moreno – sequence: 2 givenname: Mateo surname: Arias middlename: Rincón fullname: Arias, Mateo Rincón – sequence: 3 givenname: Jesús surname: Riveros middlename: Antonio Hernández fullname: Riveros, Jesús Antonio Hernández  | 
    
| BookMark | eNotj8tqwzAUREVJoGmSfxB0mRqkK1mWlsX0EQjUiyy6C1eWRF0cKZWcRf--hmY1AwfmMA9kEVP0d2TFNTeVAZCLW1e1-rwn21IGy6RshNa1WJGnzueQ8hlj72kKtMOM4-jHoZzpEGn3O32lSDE62u52G7IMOBa_veWaHF9fju17dfh427fPh-pi9FS5AIaLgEELxRj0DBk6hQ6krXtwrldC85laxMaAla5GEFZowZlloTFiTR7_Zy85_Vx9mU7f6ZrjbDyBBskaOf8Sf3jAQMI | 
    
| ContentType | Journal Article | 
    
| Copyright | Copyright International Association of Engineers May 22, 2023 | 
    
| Copyright_xml | – notice: Copyright International Association of Engineers May 22, 2023 | 
    
| DBID | 7SC 8FD JQ2 L7M L~C L~D  | 
    
| DatabaseName | Computer and Information Systems Abstracts Technology Research Database ProQuest Computer Science Collection Advanced Technologies Database with Aerospace Computer and Information Systems Abstracts  Academic Computer and Information Systems Abstracts Professional  | 
    
| DatabaseTitle | Computer and Information Systems Abstracts Technology Research Database Computer and Information Systems Abstracts – Academic Advanced Technologies Database with Aerospace ProQuest Computer Science Collection Computer and Information Systems Abstracts Professional  | 
    
| DatabaseTitleList | Computer and Information Systems Abstracts | 
    
| DeliveryMethod | fulltext_linktorsrc | 
    
| Discipline | Computer Science | 
    
| EISSN | 1819-9224 | 
    
| GroupedDBID | .4S .DC 2WC 5VS 7SC 8FD AAKPC ADMLS ALMA_UNASSIGNED_HOLDINGS ARCSS EDO EOJEC I-F JQ2 KQ8 L7M L~C L~D MK~ ML~ OBODZ OK1 OVT P2P TR2 TUS  | 
    
| ID | FETCH-LOGICAL-p98t-df2913faf836002c0a0ad6ad24b5c2ddc6381af8baa792b4d5a23b38310b0f793 | 
    
| ISSN | 1819-656X | 
    
| IngestDate | Sun Jun 29 15:52:03 EDT 2025 | 
    
| IsPeerReviewed | true | 
    
| IsScholarly | true | 
    
| Issue | 2 | 
    
| Language | English | 
    
| LinkModel | OpenURL | 
    
| MergedId | FETCHMERGED-LOGICAL-p98t-df2913faf836002c0a0ad6ad24b5c2ddc6381af8baa792b4d5a23b38310b0f793 | 
    
| Notes | ObjectType-Article-1 SourceType-Scholarly Journals-1 ObjectType-Feature-2 content type line 14  | 
    
| PQID | 2824074922 | 
    
| PQPubID | 2049582 | 
    
| ParticipantIDs | proquest_journals_2824074922 | 
    
| PublicationCentury | 2000 | 
    
| PublicationDate | 20230522 | 
    
| PublicationDateYYYYMMDD | 2023-05-22 | 
    
| PublicationDate_xml | – month: 05 year: 2023 text: 20230522 day: 22  | 
    
| PublicationDecade | 2020 | 
    
| PublicationPlace | Hong Kong | 
    
| PublicationPlace_xml | – name: Hong Kong | 
    
| PublicationTitle | IAENG international journal of computer science | 
    
| PublicationYear | 2023 | 
    
| Publisher | International Association of Engineers | 
    
| Publisher_xml | – name: International Association of Engineers | 
    
| SSID | ssib044738853 ssj0070001  | 
    
| Score | 2.26992 | 
    
| Snippet | In this paper, we evaluate the performance of parallelism in Python and C++. Parallel programming can be achieved in Python through the multiprocessing module... | 
    
| SourceID | proquest | 
    
| SourceType | Aggregation Database | 
    
| StartPage | 579 | 
    
| SubjectTerms | Algorithms C++ (programming language) Matrices (mathematics) Multiplication Multiprocessing Parallel programming Performance evaluation Python  | 
    
| Title | Performance of Parallelism in Python and C++ | 
    
| URI | https://www.proquest.com/docview/2824074922 | 
    
| Volume | 50 | 
    
| hasFullText | 1 | 
    
| inHoldings | 1 | 
    
| isFullTextHit | |
| isPrint | |
| journalDatabaseRights | – providerCode: PRVAFT databaseName: Open Access Digital Library customDbUrl: eissn: 1819-9224 dateEnd: 99991231 omitProxy: true ssIdentifier: ssj0070001 issn: 1819-656X databaseCode: KQ8 dateStart: 20060101 isFulltext: true titleUrlDefault: http://grweb.coalliance.org/oadl/oadl.html providerName: Colorado Alliance of Research Libraries – providerCode: PRVEBS databaseName: Inspec with Full Text customDbUrl: eissn: 1819-9224 dateEnd: 99991231 omitProxy: false ssIdentifier: ssj0070001 issn: 1819-656X databaseCode: ADMLS dateStart: 20070301 isFulltext: true titleUrlDefault: https://www.ebsco.com/products/research-databases/inspec-full-text providerName: EBSCOhost – providerCode: PRVHPJ databaseName: ROAD: Directory of Open Access Scholarly Resources customDbUrl: eissn: 1819-9224 dateEnd: 99991231 omitProxy: true ssIdentifier: ssib044738853 issn: 1819-656X databaseCode: M~E dateStart: 0 isFulltext: true titleUrlDefault: https://road.issn.org providerName: ISSN International Centre  | 
    
| link | http://utb.summon.serialssolutions.com/2.0.0/link/0/eLvHCXMwnV1La9tAEF6cnHrpKy19pGUPSS-qirQrWdbRMU6TELulKOCb2ZdAELSp7R7aQ357Z1arakNLSQtmMbvGSJrRPHbnm4-QI8h5eAaeJ0YYIwzCxILnkxjeyVrVsk7GEhPFxXJ8dpVdrPLVaHQbokt28oP68Udcyf9IFeZAroiS_QfJ_vpTmIDvIF8YQcIw3kvGn4Oqf6xlExtkRrlG3osGbNt37AvgTgdmx-wEPmEkej6dLz-6bhHDhmDQRkJ5tofIu8hBMaS9Nlr0Qa9qtspGF8KhVhZ2Y1o7_LTp0GILiGdt9KWBJzfjxyd8AJ9hUYj1iLKtW5xusZ8BGBoLHnHTunP8FPe5w-0J5ooB2ZDM3t3XDFTOFU76lovBtiQEHFiO49gNwT8NcyXrsNa91e7a1XrtZIEJzjtymruttZef1qdXl5frar6q3t18jZF1DE_nPQXLHtnjKfJfLG7nvTXKsoJPXDDT-fUCw2FM3_sr_M17u5Ckekwe-lyCTjvFeEJGpn1KHvU8HdSb7QPyPtATamsa6AltWtrpCQU9obMoekaq03k1O4s9S0Z8U052sa5ZmfJa1IjGSZhKRCL0WGiWyVwxrRUY2BRWpRBFyWSmc8G45MgvJ5MarPNzst_a1rwgtODa6KQU4yI1makLqTi4wlznXDItVfGSHPY3vPYKuV1Dyp5BGAriefX35dfkwaAfh2R_t_lm3kBAt5Nv3XP_CWGIUaI | 
    
| linkProvider | ISSN International Centre | 
    
| openUrl | ctx_ver=Z39.88-2004&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rfr_id=info%3Asid%2Fsummon.serialssolutions.com&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&rft.genre=article&rft.atitle=Performance+of+Parallelism+in+Python+and+C%2B%2B&rft.jtitle=IAENG+international+journal+of+computer+science&rft.au=Arboleda%2C+Francisco+Javier+Moreno&rft.au=Arias%2C+Mateo+Rinc%C3%B3n&rft.au=Riveros%2C+Jes%C3%BAs+Antonio+Hern%C3%A1ndez&rft.date=2023-05-22&rft.pub=International+Association+of+Engineers&rft.issn=1819-656X&rft.eissn=1819-9224&rft.volume=50&rft.issue=2&rft.spage=579&rft.externalDBID=NO_FULL_TEXT | 
    
| thumbnail_l | http://covers-cdn.summon.serialssolutions.com/index.aspx?isbn=/lc.gif&issn=1819-656X&client=summon | 
    
| thumbnail_m | http://covers-cdn.summon.serialssolutions.com/index.aspx?isbn=/mc.gif&issn=1819-656X&client=summon | 
    
| thumbnail_s | http://covers-cdn.summon.serialssolutions.com/index.aspx?isbn=/sc.gif&issn=1819-656X&client=summon |