1
0
Fork 0
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:
k0kubun 2018-07-08 17:03:23 +00:00
parent 1aedeaa476
commit 12068aa4e9
39 changed files with 394 additions and 515 deletions

View file

@ -1,10 +1,8 @@
prelude: |
s = Struct.new(:a, :b, :c)
x = s.new
benchmark:
vm2_struct_small_aref: |
s = Struct.new(:a, :b, :c)
x = s.new
i = 0
while i<6_000_000 # benchmark loop 2
i += 1
x.a
end
loop_count: 1
vm2_struct_small_aref: 'x.a
'
loop_count: 6000000