about summary refs log tree commit diff
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2014-08-02 02:16:02 +0000
committerbors <bors@rust-lang.org>2014-08-02 02:16:02 +0000
commit06727d4720d6a2818ba6701ae7151c4c8d7ceb9f (patch)
tree2a85c3db89264c4ee64f689a190f7fa6918aa5c4
parentd7cfc34a222c0280670690be0d618b67014cc28d (diff)
parentd4c3500ec6dace9a88f3e56c3495b34db6aa65c5 (diff)
downloadrust-06727d4720d6a2818ba6701ae7151c4c8d7ceb9f.tar.gz
rust-06727d4720d6a2818ba6701ae7151c4c8d7ceb9f.zip
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.
-rw-r--r--src/doc/complement-lang-faq.md11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/doc/complement-lang-faq.md b/src/doc/complement-lang-faq.md
index c5ddd180ee8..447e6b62cf7 100644
--- a/src/doc/complement-lang-faq.md
+++ b/src/doc/complement-lang-faq.md
@@ -162,4 +162,15 @@ debugging linking in the compiler you might set
 `RUST_LOG=rustc::metadata::creader,rustc::util::filesearch,rustc::back::rpath`
 For a full description see [the logging crate][1].
 
+## How fast is Rust?
+
+As always, this question is difficult to answer. There's still a lot of work to
+do on speed, and depending on what you're benchmarking, Rust has variable
+performance.
+
+That said, it is an explicit goal of Rust to be as fast as C++ for most things.
+Language decisions are made with performance in mind, and we want Rust to be as
+fast as possible. Given that Rust is built on top of LLVM, any performance
+improvements in it also help us be faster.
+
 [1]:log/index.html