tag:blogger.com,1999:blog-20975090.post3829698792662021609..comments2024-03-11T10:18:55.852-05:00Comments on Headius: Updated Alioth Numbers for JRuby 1.1b1Charles Oliver Nutterhttp://www.blogger.com/profile/06400331959739924670noreply@blogger.comBlogger5125tag:blogger.com,1999:blog-20975090.post-22396969985991291922007-11-17T00:03:00.000-06:002007-11-17T00:03:00.000-06:00Isaac: It should be fixed now in trunk; Kernel#sle...Isaac: It should be fixed now in trunk; Kernel#sleep was implemented incorrectly.<BR/><BR/>http://jira.codehaus.org/browse/JRUBY-1575Charles Oliver Nutterhttps://www.blogger.com/profile/06400331959739924670noreply@blogger.comtag:blogger.com,1999:blog-20975090.post-71008012579008171972007-11-16T18:10:00.000-06:002007-11-16T18:10:00.000-06:00mea culpa I failed to notice that there really is ...<I>mea culpa</I> I failed to notice that there really is a problem!<BR/><BR/>With JRuby the program fails at 495 messages, any idea what's going wrong?<BR/><BR/>~/tmp $ /opt/jruby-1.1b1/bin/jruby -J-server -J-Xbatch -O threadring.rb 494<BR/>495<BR/>~/tmp $ /opt/jruby-1.1b1/bin/jruby -J-server -J-Xbatch -O threadring.rb 495<BR/>~/tmp $<BR/><BR/><A HREF="http://shootout.alioth.debian.org/gp4sandbox/benchmark.php?test=threadring&lang=jruby&id=0" REL="nofollow">thread-ring (new) Ruby JRuby program</A>Isaac Gouyhttps://www.blogger.com/profile/02902123247585964087noreply@blogger.comtag:blogger.com,1999:blog-20975090.post-68597523050319794492007-11-15T11:39:00.000-06:002007-11-15T11:39:00.000-06:00Wierdly, the JRuby thread-ring program doesn't see...Wierdly, <A HREF="http://shootout.alioth.debian.org/gp4sandbox/benchmark.php?test=threadring&lang=jruby&id=0" REL="nofollow">the JRuby thread-ring program</A> doesn't seem to show a result when run inside our bash/perl measurement programs, but seems fine when run in a terminal window.<BR/><BR/>Any idea what's going on?Isaac Gouyhttps://www.blogger.com/profile/00226627985460018169noreply@blogger.comtag:blogger.com,1999:blog-20975090.post-38762457460262246322007-11-07T11:01:00.000-06:002007-11-07T11:01:00.000-06:00That's great news, but I have to agree with Isaac....That's great news, but I have to agree with Isaac. Startup times shouldn't be ignored - especially given the scripting language aspect of Ruby. If you want to use JRuby for short scripts, you'd want it to startup pretty much immediately. <BR/><BR/>Putting Ruby on the JVM brings some amazing benefits, but there's no getting away from the fact it's Java. That's the price of progress I suppose :-/ Is there any way that JRuby could be launched in a 'light' mode that sacrifices long term performance for a quicker start up through dynamic loading, or is this entirely down to JVM startup times?<BR/><BR/>Good Work!<BR/><BR/>StuAnonymousnoreply@blogger.comtag:blogger.com,1999:blog-20975090.post-63340294813674609262007-11-05T14:26:00.000-06:002007-11-05T14:26:00.000-06:00"startup, beyond being a touch unfair for a JVM-ba...<I>"startup, beyond being a touch unfair for a JVM-based language right now ..."</I><BR/><BR/>I have to disagree with that ;-)<BR/><BR/>It might be <I>irrelevant</I> if we only ever invoke the programs on a long running JRuby server, but that might not be what we're doing.<BR/><BR/>We're talking about JRuby startup ~25x slower than Java startup, ~10x slower than Rhino startup.<BR/><BR/>If you think startup will still be this slow beyond the beta then I think you need to loudly set expectations.<BR/><BR/><BR/><I>"pidigits is simply too short for JRuby to hit its full stride"</I><BR/><BR/>Which is a most euphemistic way of saying JRuby startup is <I>so slow</I> that it swamps the calculation time :-)<BR/><BR/>Long startup time is <I>an explanation</I> why a program is slow - it doesn't make the program any faster.Isaac Gouyhttps://www.blogger.com/profile/02902123247585964087noreply@blogger.com