3 ms·
Grossly misleading. You're measuring the build time of an optimized build, which is not what developers are building during routine development. Optimized build
by kibwen 11y ago
Grossly misleading. You're measuring the build time of an optimized build, which is not what developers are building during routine development. Optimized builds deliberately trade compilation speed for superior performance.
- igouy 11y agofwiw $ time /usr/local/src/rust-1.3.0-x86_64-unknown-linux-gnu/rustc/bin/rustc meteor.rs -o meteor.rust-2.rust_run real 0m2.042s user 0m1.940s sys 0m0.096s
- kibwen 11y agoAnd most of that is constant time overhead of linking and trans, rather than linearly scaling overhead. :P
- igouy 11y agofwiw thread-ring Rust, 38 lines of code $ time /usr/local/src/rust-1.3.0-x86_64-unknown-linux-gnu/rustc/bin/rustc threadring.rs -o threadring.rust_run real 0m1.466s user 0m1.340s sys 0m0.112s
- Jweb_Guru 11y agoIt's not misleading, because Rust focuses so little on -O0 performance that it's often not plausible to use a Rust build with that optimization level. We can't have it both ways.