diff options
author | k0kubun <k0kubun@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2018-07-08 17:19:57 +0000 |
---|---|---|
committer | k0kubun <k0kubun@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2018-07-08 17:19:57 +0000 |
commit | 71f8406f6ca52a9301ec64b8d9ef64618051eef0 (patch) | |
tree | 7d90e3a1127f831c4cda77c8105f38ea2fc9a265 /benchmark/vm2_poly_method.yml | |
parent | 12068aa4e980ab32a0438408a519030e65dabf5e (diff) | |
download | ruby-71f8406f6ca52a9301ec64b8d9ef64618051eef0.tar.gz |
benchmark/vm2_*.yml: fix ugly conversion errors
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@63897 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'benchmark/vm2_poly_method.yml')
-rw-r--r-- | benchmark/vm2_poly_method.yml | 37 |
1 files changed, 21 insertions, 16 deletions
diff --git a/benchmark/vm2_poly_method.yml b/benchmark/vm2_poly_method.yml index 65541515eb..0104bdfb66 100644 --- a/benchmark/vm2_poly_method.yml +++ b/benchmark/vm2_poly_method.yml @@ -1,19 +1,24 @@ -prelude: | - class C1 - def m - 1 +# loop_count is not utilized since `i` is involved in the script +benchmark: + vm2_poly_method: | + class C1 + def m + 1 + end end - end - class C2 - def m - 2 + class C2 + def m + 2 + end end - end - o1 = C1.new - o2 = C2.new -benchmark: - vm2_poly_method: | - o = (i % 2 == 0) ? o1 : o2 - o.m; o.m; o.m; o.m; o.m; o.m; o.m; o.m -loop_count: 6000000 + o1 = C1.new + o2 = C2.new + + i = 0 + while i<6_000_000 + o = (i % 2 == 0) ? o1 : o2 + o.m; o.m; o.m; o.m; o.m; o.m; o.m; o.m + i += 1 + end +loop_count: 1 |