4 ms·
I agree, but I don't know about a million :) https://programming-language-benchmarks.vercel.app/rust-vs-java https://programming-language-benchmarks.vercel.app
by winrid 3y ago
I agree, but I don't know about a million :)
https://programming-language-benchmarks.vercel.app/rust-vs-java https://programming-language-benchmarks.vercel.app/rust-vs-j...
For giggles, also checkout the amount of generated machine code in godbolt with a simple Hello world that uses &str vs String. Its like 10x the instructions :P
- rolobio 3y agoThat link does not work for me?
- satvikpendem 3y agoNot sure why they posted an AMP link, here's the correct one: https://programming-language-benchmarks.vercel.app/rust-vs-java https://programming-language-benchmarks.vercel.app/rust-vs-j...
- winrid 3y agoI fixed it. Didn't trim enough of the URL on mobile..
- xxs 3y agoWhile I agree about million times, [micro]benchmarks that run seconds (or milliseconds) have extremely limited use, esp. when combined with non-compiled languages, that's effectively comparing compilation, guidance, and run time. I'd consider the entire site/process flawed.
- winrid 3y agoIt's useful in demonstrating there isn't a factor of a million difference, which was the discussion.
- return_to_monke 3y agoDo the java benchmarks include JVM startup?
- winrid 3y agoYeah, it appears they just run a script, I don't think the code itself is allowed to say how long the test took. That's why you have to subtract like 80ms (estimating from the hello world comparison) for most of them.