Skip to content

Commit 06727d4

Browse files
committed
auto merge of #16128 : steveklabnik/rust/speed_faq, r=brson
Fixes #11174. I'm open to revising this text, but I figured it gets across the basics.
2 parents d7cfc34 + d4c3500 commit 06727d4

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

src/doc/complement-lang-faq.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -162,4 +162,15 @@ debugging linking in the compiler you might set
162162
`RUST_LOG=rustc::metadata::creader,rustc::util::filesearch,rustc::back::rpath`
163163
For a full description see [the logging crate][1].
164164

165+
## How fast is Rust?
166+
167+
As always, this question is difficult to answer. There's still a lot of work to
168+
do on speed, and depending on what you're benchmarking, Rust has variable
169+
performance.
170+
171+
That said, it is an explicit goal of Rust to be as fast as C++ for most things.
172+
Language decisions are made with performance in mind, and we want Rust to be as
173+
fast as possible. Given that Rust is built on top of LLVM, any performance
174+
improvements in it also help us be faster.
175+
165176
[1]:log/index.html

0 commit comments

Comments
 (0)