Charles Oliver Nutter-2 wrote:
> 
> Interesting numbers...I think we need more information, however, like 
> what version of JRuby you ran and a short description of how the 
> application works. There have been threading-related bottlenecks 
> reported over time, but we've solved many of those issues.
> 
> Also 1.1.6 is coming out today, which includes a number of these fixes.
> 
> - Charlie
> 

The JRuby version I used was 1.1.5 with Java 6
Additional VM arguments used were:
-Xmx768M -Xms768M -Djruby.objectspace.enabled=false
-Djruby.thread.pooling=true

I got JRuby 1.1.6 and ran the application again and got these numbers:
Threads   JRuby   Java
=======================
5             41.62     31.20
10           77.04     31.45
15          103.14    31.45
20          126.24    31.41
25          173.93    32.17

About the application:
Spawns multiple threads, creates a task (ruby or java) and runs the task

Main.java (Main class. Invokes both Java as well as JRuby)
  instantiates a Task Factory each for Java and Ruby and spawns TaskRunner
threads

TaskRunner.java
  using the task factory given to it (either Java or Ruby), get a new task
and execute it number of times
  
ComplexTask.java and RubyComplexTask.rb (subclass of ComplexTask.java)
  adds 5000 integers contained in a comma separated string

To run the application, JRUBY_HOME environment variable should be set.
It can be run through ant script provided with the application.
For details read the README.txt file. 
-- 
View this message in context: 
http://www.nabble.com/Major-performance-slowdown-while-multithreading-%28Java-Vs-JRuby%29-tp21053077p21068248.html
Sent from the JRuby - Dev mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email


Reply via email to