Return to search

Performance evaluation for choosing between Rust and C++

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++.

Identiferoai:union.ndltd.org:UPSALLA1/oai:DiVA.org:bth-24686
Date January 2023
CreatorsKarlsson, Patrik
PublisherBlekinge Tekniska Högskola, Institutionen för programvaruteknik
Source SetsDiVA Archive at Upsalla University
LanguageEnglish
Detected LanguageEnglish
TypeStudent thesis, info:eu-repo/semantics/bachelorThesis, text
Formatapplication/pdf
Rightsinfo:eu-repo/semantics/openAccess

Page generated in 0.0025 seconds