1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

benchmark/vm1_*.yml: manual fixes for ugly conversions

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@63894 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
k0kubun 2018-07-08 16:35:44 +00:00
parent 820ad9cb1d
commit 94e55bbd37
9 changed files with 34 additions and 39 deletions

View file

@ -2,7 +2,6 @@ prelude: |
def m &b
end
benchmark:
vm1_blockparam: 'm{}
'
vm1_blockparam: |
m{}
loop_count: 30000000

View file

@ -3,7 +3,6 @@ prelude: |
b.call
end
benchmark:
vm1_blockparam_call: 'm{}
'
vm1_blockparam_call: |
m{}
loop_count: 30000000

View file

@ -7,7 +7,6 @@ prelude: |
bp_yield &b
end
benchmark:
vm1_blockparam_pass: 'bp_pass{}
'
vm1_blockparam_pass: |
bp_pass{}
loop_count: 30000000

View file

@ -3,7 +3,6 @@ prelude: |
yield
end
benchmark:
vm1_blockparam_yield: 'bp_yield{}
'
vm1_blockparam_yield: |
bp_yield{}
loop_count: 30000000

View file

@ -1,6 +1,5 @@
prelude: 'Const = 1
'
prelude: |
Const = 1
benchmark:
vm1_const: |
j = Const

View file

@ -1,16 +1,21 @@
prelude: |
def m v
unless v
# unreachable code
v1 = v2 = v3 = v4 = v5 = v6 = v7 = v8 = v9 = v10 =
v11 = v12 = v13 = v14 = v15 = v16 = v17 = v18 = v19 = v20 =
v21 = v22 = v23 = v24 = v25 = v26 = v27 = v28 = v29 = v30 =
v31 = v32 = v33 = v34 = v35 = v36 = v37 = v38 = v39 = v40 =
v41 = v42 = v43 = v44 = v45 = v46 = v47 = v48 = v49 = v50 = 1
end
end
# while loop cost is not removed because `i` is used in the script
benchmark:
vm1_lvar_init: 'm i
vm1_lvar_init: |
def m v
unless v
# unreachable code
v1 = v2 = v3 = v4 = v5 = v6 = v7 = v8 = v9 = v10 =
v11 = v12 = v13 = v14 = v15 = v16 = v17 = v18 = v19 = v20 =
v21 = v22 = v23 = v24 = v25 = v26 = v27 = v28 = v29 = v30 =
v31 = v32 = v33 = v34 = v35 = v36 = v37 = v38 = v39 = v40 =
v41 = v42 = v43 = v44 = v45 = v46 = v47 = v48 = v49 = v50 = 1
end
end
'
loop_count: 30000000
i = 0
while i<30_000_000
i += 1
m i
end
loop_count: 1

View file

@ -1,6 +1,4 @@
benchmark:
vm1_lvar_set: 'a = b = c = d = e = f = g = h = j = k = l = m = n = o = p = q = r
= 1
'
vm1_lvar_set: |
a = b = c = d = e = f = g = h = j = k = l = m = n = o = p = q = r = 1
loop_count: 30000000

View file

@ -3,7 +3,5 @@ prelude: |
return 1
end
benchmark:
vm1_simplereturn: 'm
'
vm1_simplereturn: m
loop_count: 30000000

View file

@ -2,7 +2,6 @@ prelude: |
a = 1
b = 2
benchmark:
vm1_swap: 'a, b = b, a
'
vm1_swap: |
a, b = b, a
loop_count: 30000000