论文标题

生锈C ++ - 快吗?日常工作中的基准系统语言

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

论文作者

Ivanov, Nikolay

论文摘要

Rust是一种相对较新的系统编程语言,在过去的10年中一直在迅速采用。 Rust结合了在编译时强制执行的内存所有权模型。由于该模型涉及零运行时开销,因此用Rust编写的程序不仅是内存安全,而且还快速,导致性能与C和C ++相当。将RUST与其他语言的性能进行比较的多种现有基准,以较少使用的浅表算法为重点,从而有些不确定的结果。在这项工作中,我们使用常用算法和数据结构而不是外来的算法和数据结构进行了对RUST和C ++的比较性能基准。我们的评估表明,RUST的总体表现类似于C ++,只有较小的劣势。我们还证明,在某些Rust例程中比C ++的例程要快一些。

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

扫码加入交流群

加入微信交流群

微信交流群二维码

扫码加入学术交流群,获取更多资源