一句话:系统性测量与分析 Rust 的运行时性能,检验其效率可与 C/C++ 媲美的普遍说法。
Rust 是一门年轻但凭借内存安全保证而广受欢迎的系统编程语言,然而人们普遍声称其效率可与 C/C++ 媲美,其运行时性能却缺乏系统性的理解。本文针对这一空白,对 Rust 的运行时性能展开研究,通过基准测试与实证测量,剖析 Rust 程序在运行时的性能表现及其与 C/C++ 的差异来源,为后续的性能优化与语言设计提供依据。
Rust is a young systems programming language, but it has gained tremendous popularity thanks to its assurance of memory safety. However, the performance of Rust has been less systematically understood, although many people are claiming that Rust is comparable to C/C++ regarding efficiency.