repo.or.cz
/
jruby.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
history
|
raw
|
HEAD
Fix for JRUBY-2882. Handle error messages related to constructors better
[jruby.git]
/
bench
/
yarv
/
bm_vm2_poly_method_ov.rb
blob
856ba9b16166fe89128e9162253946b832bdf4e2
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