mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* benchmark/bm_vm2_defined_method.rb: added to measure performance of
bmethod (method defined by define_method()). git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@32336 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
3bd0566288
commit
c4becf8aaf
2 changed files with 14 additions and 0 deletions
|
@ -1,3 +1,8 @@
|
|||
Thu Jun 30 22:38:58 2011 Koichi Sasada <ko1@atdot.net>
|
||||
|
||||
* benchmark/bm_vm2_defined_method.rb: added to measure performance of
|
||||
bmethod (method defined by define_method()).
|
||||
|
||||
Thu Jun 30 22:17:04 2011 Koichi Sasada <ko1@atdot.net>
|
||||
|
||||
* vm_insnhelper.c (vm_call_bmethod): fix to hook call/return event
|
||||
|
|
9
benchmark/bm_vm2_defined_method.rb
Normal file
9
benchmark/bm_vm2_defined_method.rb
Normal file
|
@ -0,0 +1,9 @@
|
|||
class Object
|
||||
define_method(:m){}
|
||||
end
|
||||
|
||||
i=0
|
||||
while i<6000000 # benchmark loop 2
|
||||
i+=1
|
||||
m; m; m; m; m; m; m; m;
|
||||
end
|
Loading…
Add table
Reference in a new issue