Is Rust C++-fast? Benchmarking System Languages on Everyday Routines

09/19/2022
by   Nikolay Ivanov, et al.
0

Rust is a relatively new system programming language that has been experiencing a rapid adoption in the past 10 years. Rust incorporates a memory ownership model enforced at a compile time. Since this model involves zero runtime overhead, programs written in Rust are not only memory-safe but also fast, leading to performance comparable to C and C++. Multiple existing benchmarks comparing the performance of Rust with other languages focus on rarely used superficial algorithms, leading to somewhat inconclusive results. In this work, we conduct a comparative performance benchmark of Rust and C++ using commonly used algorithms and data structures rather than exotic ones. Our evaluation shows that the overall performance of Rust is similar to C++, with only minor disadvantage. We also demonstrate that in some Rust routines are slightly faster than the ones of C++.

READ FULL TEXT

page 1

page 2

page 3

page 4

research
08/09/2017

D4M 3.0: Extended Database and Language Capabilities

The D4M tool was developed to address many of today's data needs. This t...
research
05/12/2020

Towards Memory Safe Python Enclave for Security Sensitive Computation

Intel SGX Guard eXtensions (SGX), a hardware-supported trusted execution...
research
02/03/2023

Measuring The Impact Of Programming Language Distribution

Current benchmarks for evaluating neural code models focus on only a sma...
research
05/05/2023

Descend: A Safe GPU Systems Programming Language

Graphics Processing Units (GPU) offer tremendous computational power by ...
research
03/17/2023

TypeScript's Evolution: An Analysis of Feature Adoption Over Time

TypeScript is a quickly evolving superset of JavaScript with active deve...
research
07/28/2021

BROUTE: a benchmark suite for the implementation of standard vehicle routing algorithms

We introduce BROUTE, a benchmark suite for vehicle routing optimization ...
research
05/18/2020

Sham: A DSL for Fast DSLs

Domain-specific languages (DSLs) are touted as both easy to embed in pro...

Please sign up or login with your details

Forgot password? Click here to reset