define_method methods do not JIT and are generally slower unless the code that 
contains them is compiled before they are defined
--------------------------------------------------------------------------------------------------------------------------------

                 Key: JRUBY-1852
                 URL: http://jira.codehaus.org/browse/JRUBY-1852
             Project: JRuby
          Issue Type: Bug
            Reporter: Charles Oliver Nutter
            Assignee: Charles Oliver Nutter
             Fix For: JRuby 1.1


{noformat}
~/NetBeansProjects/jruby $ jruby -J-server -e "load 
'test/bench/bench_define_method_methods.rb'"
define_method(:foo) {}, 100k * 100 invocations
  5.028000   0.000000   5.028000 (  4.936000)
  4.542000   0.000000   4.542000 (  4.541000)
  4.541000   0.000000   4.541000 (  4.541000)
  4.534000   0.000000   4.534000 (  4.534000)
  4.377000   0.000000   4.377000 (  4.376000)
~/NetBeansProjects/jruby $ jruby -J-server +C -e "load 
'test/bench/bench_define_method_methods.rb'"
define_method(:foo) {}, 100k * 100 invocations
  4.273000   0.000000   4.273000 (  4.185000)
  3.750000   0.000000   3.750000 (  3.751000)
  3.403000   0.000000   3.403000 (  3.404000)
  3.453000   0.000000   3.453000 (  3.453000)
  3.358000   0.000000   3.358000 (  3.358000)
{noformat}

Could be a source of Rails bottlenecks.

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