<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
	>

<channel>
	<title>Bits and pieces of thoughts and personal achievements &#187; jruby</title>
	<atom:link href="http://hellohellonico.wordpress.com/category/jruby/feed/" rel="self" type="application/rss+xml" />
	<link>http://hellohellonico.wordpress.com</link>
	<description>Just another WordPress.com weblog</description>
	<lastBuildDate>Fri, 21 Sep 2007 01:53:04 +0000</lastBuildDate>
	<generator>http://wordpress.com/</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<cloud domain='hellohellonico.wordpress.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://www.gravatar.com/blavatar/fef97b59e5724bc308a4c1f5643fdebc?s=96&#038;d=http://s.wordpress.com/i/buttonw-com.png</url>
		<title>Bits and pieces of thoughts and personal achievements &#187; jruby</title>
		<link>http://hellohellonico.wordpress.com</link>
	</image>
	<atom:link rel="search" type="application/opensearchdescription+xml" href="http://hellohellonico.wordpress.com/osd.xml" title="Bits and pieces of thoughts and personal achievements" />
		<item>
		<title>OpenWFEru on JRuby! Getting there &#8230;</title>
		<link>http://hellohellonico.wordpress.com/2007/09/21/openwferu-on-jruby-getting-there/</link>
		<comments>http://hellohellonico.wordpress.com/2007/09/21/openwferu-on-jruby-getting-there/#comments</comments>
		<pubDate>Fri, 21 Sep 2007 01:22:06 +0000</pubDate>
		<dc:creator>hellonico</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[jruby]]></category>
		<category><![CDATA[osx]]></category>
		<category><![CDATA[ruby]]></category>

		<guid isPermaLink="false">http://hellohellonico.wordpress.com/2007/09/21/openwferu-on-jruby-getting-there/</guid>
		<description><![CDATA[ Testing JRuby rev 4363 with OpenWFEru rev 1093 on OSX, with Java6 (1.6.0-dp). Ruby used was 1.8.6 (patch 0) which is known to have some threading problems.
All the jruby tests have -O -J-server options added. (Only those ones, compared to the vanilla jruby script)
 1. Functional testing
jruby -Ilib:test test/ft_tests.rb
Finished in 63.312000000000005 seconds.
215 tests, 473 [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=hellohellonico.wordpress.com&blog=1387978&post=17&subd=hellohellonico&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p> Testing <a href="http://jruby.codehaus.org/">JRuby</a> rev 4363 with <a href="http://openwferu.rubyforge.org/">OpenWFEru</a> rev 1093 on OSX, with Java6 (1.6.0-dp). Ruby used was 1.8.6 (patch 0) which is known to have <a href="http://groups.google.com/group/ruby-talk-google/browse_frm/thread/101b347655febbf0/114ee4576a1960c2?lnk=gst&amp;q=1.8.6+thread+problems&amp;rnum=1#114ee4576a1960c2">some threading problems.</a></p>
<p>All the jruby tests have -O -J-server options added. (Only those ones, compared to the vanilla jruby script)</p>
<h1><a href="http://groups.google.com/group/ruby-talk-google/browse_frm/thread/101b347655febbf0/114ee4576a1960c2?lnk=gst&amp;q=1.8.6+thread+problems&amp;rnum=1#114ee4576a1960c2"> </a>1. Functional testing</h1>
<p><strong>jruby -Ilib:test test/ft_tests.rb</strong></p>
<blockquote><p>Finished in 63.312000000000005 seconds.<br />
215 tests, 473 assertions, 0 failures, 0 errors</p></blockquote>
<p><strong>ruby -Ilib:test test/ft_tests.rb  </strong></p>
<blockquote><p>Finished in 53.718509 seconds.<br />
215 tests, 473 assertions, 0 failures, 0 errors</p></blockquote>
<h1>2. Quick in-memory testing</h1>
<p><strong>jruby -Ilib:test test/rake_qtest.rb</strong></p>
<blockquote><p>Finished in 75.07900000000001 seconds.<br />
291 tests, 765 assertions, 1 failures, 0 errors</p></blockquote>
<p><strong>ruby -Ilib:test test/rake_qtest.rb</strong></p>
<blockquote><p>Finished in 64.828691 seconds.<br />
291 tests, 770 assertions, 0 failures, 1 errors</p></blockquote>
<h1>3. Load testing</h1>
<p><strong>jruby -Ilib:test test/ft_26c_load.rb </strong></p>
<blockquote><p>Finished in 47.230000000000004 seconds.<br />
1 tests, 1 assertions, 0 failures, 0 errors</p></blockquote>
<p><strong>ruby -Ilib:test test/ft_26c_load.rb</strong></p>
<blockquote><p>Finished in 21.641532 seconds.<br />
1 tests, 1 assertions, 0 failures, 0 errors</p></blockquote>
<h1>4. Thread testing (experimental)</h1>
<p><strong>jruby -Ilib:test test/ft_26b_load.rb </strong></p>
<blockquote><p>(hanging) doesn&#8217;t end</p></blockquote>
<p><strong>ruby -Ilib:test test/ft_26b_load.rb</strong></p>
<blockquote><p>Finished in 3.658117 seconds.<br />
1 tests, 1 assertions, 0 failures, 0 errors</p></blockquote>
<h1>5. Long tests (cron, scheduler and such)</h1>
<p><strong>jruby -Ilib:test test/rake_ltest.rb</strong></p>
<blockquote><p>Finished in 624.205 seconds.<br />
45 tests, 89 assertions, 0 failures, 0 errors</p></blockquote>
<p><strong>ruby -Ilib:test test/rake_ltest.rb</strong></p>
<blockquote><p>Finished in 620.397724 seconds.<br />
45 tests, 89 assertions, 1 failures, 0 errors</p></blockquote>
<h1>6. Conclusion</h1>
<p>What this basically implies is that OpenWFEru on JRuby is almost there.  Functional, Scheduling, and Engine testing all working fine. With about 99% test success.</p>
<p>The load test is a bit of a downside. Load performance of jruby is  getting only half as fast, while it is almost on the par with cruby on the other test. But there has to be a way where this can be solved, and improved in the short term.</p>
<p>This is really cool. 2 months ago, the same tests results were completely different (deadlock, speed concerns&#8230;)  Congratulations to both teams.</p>
<img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/hellohellonico.wordpress.com/17/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/hellohellonico.wordpress.com/17/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/hellohellonico.wordpress.com/17/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/hellohellonico.wordpress.com/17/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/hellohellonico.wordpress.com/17/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/hellohellonico.wordpress.com/17/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/hellohellonico.wordpress.com/17/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/hellohellonico.wordpress.com/17/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/hellohellonico.wordpress.com/17/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/hellohellonico.wordpress.com/17/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/hellohellonico.wordpress.com/17/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/hellohellonico.wordpress.com/17/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=hellohellonico.wordpress.com&blog=1387978&post=17&subd=hellohellonico&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://hellohellonico.wordpress.com/2007/09/21/openwferu-on-jruby-getting-there/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/b760aaaec82c275c5c805fffe58d5191?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">hellonico</media:title>
		</media:content>
	</item>
		<item>
		<title>Fixing a few bugs in JRUBY</title>
		<link>http://hellohellonico.wordpress.com/2007/07/23/fixing-a-few-bugs-in-jruby/</link>
		<comments>http://hellohellonico.wordpress.com/2007/07/23/fixing-a-few-bugs-in-jruby/#comments</comments>
		<pubDate>Mon, 23 Jul 2007 08:10:16 +0000</pubDate>
		<dc:creator>hellonico</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[jruby]]></category>

		<guid isPermaLink="false">http://hellohellonico.wordpress.com/2007/07/23/fixing-a-few-bugs-in-jruby/</guid>
		<description><![CDATA[I have been fixing the following in JRUBY today:
 http://jira.codehaus.org/browse/JRUBY-1230
 http://jira.codehaus.org/browse/JRUBY-1228
 http://jira.codehaus.org/browse/JRUBY-1108

also, I have supplied patches for some others last week:
http://jira.codehaus.org/browse/JRUBY-1207
http://jira.codehaus.org/browse/JRUBY-1140
http://jira.codehaus.org/browse/JRUBY-1215
http://jira.codehaus.org/browse/JRUBY-1214
and the quite complicated on java threading:
http://jira.codehaus.org/browse/JRUBY-1157
I hope to be able to fix a few more in the next few days, while traveling to San Francisco.
My goal is to help  John getting OpenWFEru to [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=hellohellonico.wordpress.com&blog=1387978&post=16&subd=hellohellonico&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>I have been fixing the following in JRUBY today:<br />
<a href="http://jira.codehaus.org/browse/JRUBY-1230" target="_blank"> http://jira.codehaus.org/browse/JRUBY-1230</a><br />
<a href="http://jira.codehaus.org/browse/JRUBY-1228" target="_blank"> http://jira.codehaus.org/browse/JRUBY-1228</a><br />
<a href="http://jira.codehaus.org/browse/JRUBY-1108" target="_blank"> http://jira.codehaus.org/browse/JRUBY-1108<br />
</a><br />
also, I have supplied patches for some others last week:<br />
<a href="http://jira.codehaus.org/browse/JRUBY-1214" target="_blank">http://jira.codehaus.org/browse/JRUBY-1207</p>
<p>http://jira.codehaus.org/browse/JRUBY-1140</p>
<p>http://jira.codehaus.org/browse/JRUBY-1215</p>
<p>http://jira.codehaus.org/browse/JRUBY-1214</a></p>
<p>and the quite complicated on java threading:<br />
<a href="http://jira.codehaus.org/browse/JRUBY-1157" target="_blank">http://jira.codehaus.org/browse/JRUBY-1157</a></p>
<p>I hope to be able to fix a few more in the next few days, while traveling to San Francisco.</p>
<p>My goal is to help  John getting <a href="http://openwferu.rubyforge.org/" target="_blank">OpenWFEru</a> to run at full speed on JRuby.<br />
The OpenWFEru test suite has a few more quirks remaining, but it&#8217;s looking good.</p>
<p>Can&#8217;t wait to see this happening.</p>
<img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/hellohellonico.wordpress.com/16/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/hellohellonico.wordpress.com/16/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/hellohellonico.wordpress.com/16/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/hellohellonico.wordpress.com/16/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/hellohellonico.wordpress.com/16/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/hellohellonico.wordpress.com/16/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/hellohellonico.wordpress.com/16/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/hellohellonico.wordpress.com/16/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/hellohellonico.wordpress.com/16/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/hellohellonico.wordpress.com/16/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/hellohellonico.wordpress.com/16/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/hellohellonico.wordpress.com/16/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=hellohellonico.wordpress.com&blog=1387978&post=16&subd=hellohellonico&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://hellohellonico.wordpress.com/2007/07/23/fixing-a-few-bugs-in-jruby/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/b760aaaec82c275c5c805fffe58d5191?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">hellonico</media:title>
		</media:content>
	</item>
		<item>
		<title>Faster ruby(2)</title>
		<link>http://hellohellonico.wordpress.com/2007/07/20/faster-ruby2/</link>
		<comments>http://hellohellonico.wordpress.com/2007/07/20/faster-ruby2/#comments</comments>
		<pubDate>Fri, 20 Jul 2007 05:22:23 +0000</pubDate>
		<dc:creator>hellonico</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[jruby]]></category>
		<category><![CDATA[ruby]]></category>

		<guid isPermaLink="false">http://hellohellonico.wordpress.com/2007/07/20/faster-ruby2/</guid>
		<description><![CDATA[Coming back to my previous post (and Charles&#8217;s comments!), I went and found my original test on those ruby constants.

Here are the results on ruby (1.8.6):

WithConstants(N=5000000):  5.94s
WithoutConstants(N=5000000): 5.33s

Here are the results on jruby:

WithConstants(N=5000000): 34.15s
WithoutConstants(N=5000000): 27.47s

So my previous post was wrong, the same behavior appears on both ruby and jruby, and it looks like this [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=hellohellonico.wordpress.com&blog=1387978&post=15&subd=hellohellonico&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>Coming back to my previous post (and Charles&#8217;s comments!), I went and found my original test on those ruby constants.</p>
<p><span class="Apple-style-span" style="color:#0000ee;text-decoration:underline;"><span class="Apple-style-span" style="color:#000000;"></span></span><span class="Apple-style-span" style="color:#0000ee;text-decoration:underline;"><span class="Apple-style-span" style="color:#000000;"></span><img src="http://hellohellonico.files.wordpress.com/2007/07/picture-1.png" alt="picture-1.png" /></span><span class="Apple-style-span" style="color:#0000ee;text-decoration:underline;"></span></p>
<p>Here are the results on ruby (1.8.6):</p>
<ul>
<li>WithConstants(N=5000000):  5.94s</li>
<li>WithoutConstants(N=5000000): 5.33s</li>
</ul>
<p>Here are the results on jruby:</p>
<ul>
<li>WithConstants(N=5000000): 34.15s</li>
<li>WithoutConstants(N=5000000): 27.47s</li>
</ul>
<p>So my previous post was wrong, the same behavior appears on both ruby and jruby, and it looks like this is really worth the modification when running on jruby. Those are solely empiric results.  I hope I can profile the jruby code and find the differences between the two tests and see from where comes the recorded time difference.</p>
<p>Updated:</p>
<p>Same tests again, with the options provided by Charles (<strong>-O -J-server -J-Djruby.jit.threshold=0</strong>):</p>
<ul>
<li>WithConstants(N=5000000): 11.10s</li>
<li>WithoutConstants(N=5000000): 8.4s</li>
</ul>
<p>Woah. That is really speeding things up!</p>
<img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/hellohellonico.wordpress.com/15/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/hellohellonico.wordpress.com/15/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/hellohellonico.wordpress.com/15/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/hellohellonico.wordpress.com/15/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/hellohellonico.wordpress.com/15/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/hellohellonico.wordpress.com/15/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/hellohellonico.wordpress.com/15/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/hellohellonico.wordpress.com/15/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/hellohellonico.wordpress.com/15/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/hellohellonico.wordpress.com/15/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/hellohellonico.wordpress.com/15/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/hellohellonico.wordpress.com/15/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=hellohellonico.wordpress.com&blog=1387978&post=15&subd=hellohellonico&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://hellohellonico.wordpress.com/2007/07/20/faster-ruby2/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/b760aaaec82c275c5c805fffe58d5191?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">hellonico</media:title>
		</media:content>

		<media:content url="http://hellohellonico.files.wordpress.com/2007/07/picture-1.png" medium="image">
			<media:title type="html">picture-1.png</media:title>
		</media:content>
	</item>
	</channel>
</rss>