Re:Making Rust as Fast as Go
by mqus on Sunday May 03, 2020 @10:41AM
(#23059274)
Is it intentional that the benchmarks include not only running the program itself but also compiling it? e.g. in the linked source code, the bench.sh includes the compilation step which is known to be slow in rust:
Sure, if you run it many times in succession the compiler won't do much but the benchmarking script (run.js) doesn't really indicate that and the blog post also doesn't mention that.
EDIT: I was just being stupid, don't mind me. The times were taken within each language and not externally.
Re:Making Rust as Fast as Go
by chrfrasco on Sunday May 03, 2020 @10:45AM
(#23059296)
run.js is not doing the benchmarking. If you look at the source for each of the programs being benchmarked, you'll see that the programs themselves are responsible for benchmarking
EDIT: I was just being stupid, don't mind me. The times were taken within each language and not externally.