jruby rescue around 10x slower than mri
---------------------------------------

                 Key: JRUBY-5816
                 URL: http://jira.codehaus.org/browse/JRUBY-5816
             Project: JRuby
          Issue Type: Bug
    Affects Versions: JRuby 1.6.1
         Environment: Linux 2.6.38-8-generic #42-Ubuntu SMP Mon Apr 11 03:31:50 
UTC 2011 i686 i686 i386 GNU/Linux

            Reporter: Marco Ceresa
            Assignee: Thomas E Enebo
            Priority: Trivial


Having this simple test script:


require 'benchmark'
n = 200_000
def test
  1 / 0
rescue
  return 1
end
Benchmark.bm do|b|
  b.report("DbZ") do
    n.times { test }
  end
end


We get the following result:

ruby 1.9.2p180 (2011-02-18 revision 30909) [i686-linux]
      user     system      total        real
DbZ 13.340000   0.240000  13.580000 ( 13.538902)


jruby 1.6.1 (ruby-1.8.7-p330) (2011-04-12 85838f6) (OpenJDK Client VM 1.6.0_22) 
[linux-i386-java]
      user     system      total        real
DbZ 98.540000   0.000000  98.540000 ( 98.453000)


-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

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

    http://xircles.codehaus.org/manage_email


Reply via email to