mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
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
This commit is contained in:
parent
1aedeaa476
commit
12068aa4e9
39 changed files with 394 additions and 515 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue