summaryrefslogtreecommitdiff
path: root/jni/ruby/benchmark/bm_vm2_defined_method.rb
blob: 053ed6c91293f281487dcc50632a628d9093019f (plain)
1
2
3
4
5
6
7
8
9
class Object
  define_method(:m){}
end

i = 0
while i<6_000_000 # benchmark loop 2
  i += 1
  m; m; m; m; m; m; m; m;
end