From: Charles Oliver Nutter Date: 2012-04-07T07:51:41+09:00 Subject: Re: Ruby speed compared to C in a simple calculations. On Sat, Mar 24, 2012 at 11:45 AM, Роман Ткаленко wrote: > #works for 3.55 mins Your version on JRuby: * JRuby master (1.7) on OpenJDK 6: 1m44s * JRuby master (1.7) on OpenJDK 7 (1.7.0_04): 35s A modified version (while loop, no constant, body of code in a method) on JRuby runs in 30s. That's close to a theoretical maximum for JRuby right now without JVM help (since we have to allocate all those Fixnum objects). Our new optimizing compiler will definitely be able to improve on this, since it may be able to use actual primitives for self-contained numeric algorithms. - Charlie