Method dispatch is slow after instance-level mixin, and gets slower on 
subsequent call
--------------------------------------------------------------------------------------

                 Key: JRUBY-6039
                 URL: https://jira.codehaus.org/browse/JRUBY-6039
             Project: JRuby
          Issue Type: Bug
          Components: Performance
         Environment: $ ruby -v
jruby 1.6.3 (ruby-1.8.7-p330) (2011-07-07 965162f) (OpenJDK 64-Bit Server VM 
1.6.0_22) [linux-amd64-java]
            Reporter: Jon Leighton


I was benchmarking the cost of using mixins to add methods to object instances, 
see here: https://gist.github.com/a40e9892e730cf95d887

As you can see from the results, JRuby is much slower that mri or rbx. With the 
mixin version, it also appeared to get *slower* after the rehearsal, which 
seems particularly odd.

--
This message is automatically generated by JIRA.
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