Re:Crystal vs. Node.js vs. Golang vs. Julia vs. Rust vs. Lua...
by chrisdouay on Wednesday December 21, 2016 @04:47PM
(#13232927)
I get 0.034s => this means the compiler run the code and puts directly the result in the binary file. So, when you run the binary, it only println(result)
For example, with "rustc fib.rs", I get 10 seconds as a runtime. With "rustc -O fib.rs", to turn on optimizations, I get 0.034s. This makes me pretty sure that they did not turn on optimizations, which means the Rust numbers are very misleading, and possibly, the other languages as well.