diff options
author | k0kubun <k0kubun@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2018-07-08 17:03:23 +0000 |
---|---|---|
committer | k0kubun <k0kubun@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2018-07-08 17:03:23 +0000 |
commit | 5fe61394e33fd0fbfdea170fbd4ea4f913e13cd1 (patch) | |
tree | d62bc1f1849ef9d5c9abd2c58d0ababde219f2b5 /benchmark/vm2_case_lit.yml | |
parent | 3016b8fb4df11dd9739382135ef8662fd63a5eaa (diff) | |
download | ruby-5fe61394e33fd0fbfdea170fbd4ea4f913e13cd1.tar.gz |
benchmark/vm2_*.yml: abstract away the while loop
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@63896 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'benchmark/vm2_case_lit.yml')
-rw-r--r-- | benchmark/vm2_case_lit.yml | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/benchmark/vm2_case_lit.yml b/benchmark/vm2_case_lit.yml index ced0f10475..c49b8dfe5e 100644 --- a/benchmark/vm2_case_lit.yml +++ b/benchmark/vm2_case_lit.yml @@ -1,3 +1,4 @@ +# loop_count is not utilized since `i` is involved in the script benchmark: vm2_case_lit: | i = 0 @@ -6,7 +7,7 @@ benchmark: @ret[i % @ret.size] end - while i<6_000_000 # while loop 2 + while i<6_000_000 case foo(i) when "foo" then :foo when true then true |