Performance evaluation for choosing between Rust and C++
2023 (English)Independent thesis Basic level (degree of Bachelor), 10 credits / 15 HE credits
Student thesis
Abstract [en]
Developers face numerous challenges in their careers, including the critical decision of choosing the most suitable programming language to tackle these challenges. Each programming language presents its unique set of advantages and disadvantages, making the decision-making process complex. This study focuses on one such decision – the selection between Rust and C++ which are both systems programming languages with significant emphasis on performance.
Rust, an emerging and increasingly popular language, offers a compelling alternative to the more established C++. To aid practitioners in making an informed decision, this study explores the performance differences between Rust and C++ through three distinct experiments: matrix multiplication, merge sort, and file I/O operations.
The experiments reveal that C++ demonstrates significantly faster performance in matrix multiplication. Conversely, Rust showcases superior performance in merge sort, with both languages performing similarly overall. The findings pertaining to file operations were mixed, with C++ exhibiting shorter execution times for file reading, while Rust displayed an advantage in writing larger file sizes.
By shedding light on these performance disparities, this study aims to assist developers in their decision-making process when selecting between Rust and C++.
Place, publisher, year, edition, pages
2023.
Keywords [en]
C++, Rust, evaluation
National Category
Software Engineering
Identifiers
URN: urn:nbn:se:bth-24686OAI: oai:DiVA.org:bth-24686DiVA, id: diva2:1761754
Subject / course
PA1445 Kandidatkurs i Programvaruteknik
Educational program
PAGPT Software Engineering
Supervisors
Examiners
2023-06-192023-06-012023-06-19Bibliographically approved