зеркало из https://github.com/github/ruby.git
* 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:
Родитель
3bd0566288
Коммит
c4becf8aaf
|
@ -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>
|
Thu Jun 30 22:17:04 2011 Koichi Sasada <ko1@atdot.net>
|
||||||
|
|
||||||
* vm_insnhelper.c (vm_call_bmethod): fix to hook call/return event
|
* vm_insnhelper.c (vm_call_bmethod): fix to hook call/return event
|
||||||
|
|
|
@ -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
|
Загрузка…
Ссылка в новой задаче