Call to the "each" protocol used by Enumerable methods is slower on jruby than 
MRI
----------------------------------------------------------------------------------

                 Key: JRUBY-2191
                 URL: http://jira.codehaus.org/browse/JRUBY-2191
             Project: JRuby
          Issue Type: Bug
          Components: Performance
            Reporter: Marcin Mielzynski


Given:

arr = [false, false, false, false, false, false, false]

while i<1000000
    arr.any?
     i+=1
end

1.8:
2.818956
2.784905
2.864777
2.782426

1.9:
0.918687047
0.914815271
0.913166555
0.927203569

jruby:
3.936
3.153
3.093
3.092


-- 
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