Skip to content

Commit d4c3500

Browse files
committed
Add comment about speed in FAQ.
Fixes #11174.
1 parent 7a25cf3 commit d4c3500

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
@@ -151,4 +151,15 @@ debugging linking in the compiler you might set
151151
`RUST_LOG=rustc::metadata::creader,rustc::util::filesearch,rustc::back::rpath`
152152
For a full description see [the logging crate][1].
153153

154+
## How fast is Rust?
155+
156+
As always, this question is difficult to answer. There's still a lot of work to
157+
do on speed, and depending on what you're benchmarking, Rust has variable
158+
performance.
159+
160+
That said, it is an explicit goal of Rust to be as fast as C++ for most things.
161+
Language decisions are made with performance in mind, and we want Rust to be as
162+
fast as possible. Given that Rust is built on top of LLVM, any performance
163+
improvements in it also help us be faster.
164+
154165
[1]:log/index.html

0 commit comments

Comments
 (0)