Why does Rust compile a simple program 5-10 times slower than gcc/clang?
<p>Follow-up to <a href="https://stackoverflow.com/questions/37362130/rust-minimal-compiled-program-size">Rust minimal compiled program size</a>.</p>

<pre><code>rustc hello.rs
&gt; 600 ms
</code></pre>

<p>Why does <code>rustc</code> compile a simple Hello World 5-10 times slower than gcc/clang?</p>

<p>Rust uses LLVM so it should be on par with <code>clang</code>. Anyway we are talking about a program that has only three lines of code.</p>

<pre><code>rustc hello.rs -C opt-level=0 -C prefer-dynamic
&gt; 400 ms

gcc hello.c
&gt; 60 ms

clang hello.c
&gt; 110 ms
</code></pre>