On Fri, Apr 27, 2012 at 12:34 AM, Charles Oliver Nutter <head...@headius.com> wrote: > ANYWAY...here's JRuby master, normal JIT, Java 7u3: > > normal fib > 0.805 > fib with variables > 1.007 > fib with constants > 2.001 > fib with additional calls > 1.192 > fib with constants and additional calls > 2.323
Ok, while investigating why "fib with variables" is so much slower in IR2JVM, I found out there were a few critical calls not inlining. Fixing that makes the IR numbers *much* more impressive: normal fib 1.062 fib with variables 1.054 fib with constants 1.085 fib with additional calls 1.216 fib with constants and additional calls 1.175 You're reading that right...this is essentially IR2JVM code being twice as fast for the versions with constants than the old version, and we're very close to having all three versions with increasing complexity having identical performance. That's amazing. I'm going to continue filling out IR2JVM instructions with redblack bench as the next target. - Charlie --------------------------------------------------------------------- To unsubscribe from this list, please visit: http://xircles.codehaus.org/manage_email