OSDN Git Service
(root)
/
splhack
/
AndroidRuby.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
ruby-1.9.1-rc1
[splhack/AndroidRuby.git]
/
lib
/
ruby-1.9.1-rc1
/
benchmark
/
bm_vm2_poly_method.rb
1
class C1
2
def m
3
1
4
end
5
end
6
class C2
7
def m
8
2
9
end
10
end
11
12
o1 = C1.new
13
o2 = C2.new
14
15
i=0
16
while i<6000000 # benchmark loop 2
17
o = (i % 2 == 0) ? o1 : o2
18
o.m; o.m; o.m; o.m; o.m; o.m; o.m; o.m
19
i+=1
20
end