From 71f8406f6ca52a9301ec64b8d9ef64618051eef0 Mon Sep 17 00:00:00 2001 From: k0kubun Date: Sun, 8 Jul 2018 17:19:57 +0000 Subject: benchmark/vm2_*.yml: fix ugly conversion errors git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@63897 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- benchmark/vm2_struct_big_hset.yml | 17 ++++++++++------- 1 file changed, 10 insertions(+), 7 deletions(-) (limited to 'benchmark/vm2_struct_big_hset.yml') diff --git a/benchmark/vm2_struct_big_hset.yml b/benchmark/vm2_struct_big_hset.yml index 963b668ce4..d199c5bd47 100644 --- a/benchmark/vm2_struct_big_hset.yml +++ b/benchmark/vm2_struct_big_hset.yml @@ -1,8 +1,11 @@ -prelude: | - s = Struct.new(*('a'..'z').map { |x| x.to_sym }) - x = s.new +# loop_count is not utilized since `i` is involved in the script benchmark: - vm2_struct_big_hset: 'x[:k] = i - -' -loop_count: 6000000 + vm2_struct_big_hset: | + s = Struct.new(*('a'..'z').map { |x| x.to_sym }) + x = s.new + i = 0 + while i<6_000_000 + i += 1 + x[:k] = i + end +loop_count: 1 -- cgit v1.2.3