case expression is slower than on MRI
-------------------------------------

                 Key: JRUBY-2562
                 URL: http://jira.codehaus.org/browse/JRUBY-2562
             Project: JRuby
          Issue Type: Bug
            Reporter: Marcin Mielzynski
            Assignee: Thomas E Enebo


given:

def cases foo
    case foo
        when String;
        when "";
        when //;
        when 1.2;
        else
    end
end

100000 times:
cases 1

MRI:
0.375
0.359
0.375
0.375
0.375
0.375
0.375
0.375
0.375
0.359

JRuby:
1.45
0.434
0.513
0.47300000000000003
0.47500000000000003
0.47400000000000003
0.47900000000000004
0.47500000000000003
0.47700000000000004
0.47200000000000003

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