4 ms·
Fun fact: MRI is actually designed more around memory efficiency than speed, because it's major funders are Japanese automobile companies, and Heroku; who (appa
by RangerScience 9y ago
Fun fact: MRI is actually designed more around memory efficiency than speed, because it's major funders are Japanese automobile companies, and Heroku; who (apparently?) care more (sometimes way more) about memory.
It's also (apparently) why MRI has such a fast startup time compared to similar languages and other Ruby implementations.
- flavio81 9y agoYes, but take a look at the memory usage benchmarks (on the cited benchmarks) and Ruby is similar to Java's JVM on memory usage, sometimes better, sometimes worse. You would need to compare "toy program" by "toy program", but for example, for the regex-redux program: http://benchmarksgame.alioth.debian.org/u64q/regexredux.html http://benchmarksgame.alioth.debian.org/u64q/regexredux.html Bottom line is... MRI runtime is as memory hungry as a Java JVM runtime.