aboutsummaryrefslogtreecommitdiffstats
path: root/benchmark/vm2_struct_big_aset.yml
diff options
context:
space:
mode:
Diffstat (limited to 'benchmark/vm2_struct_big_aset.yml')
-rw-r--r--benchmark/vm2_struct_big_aset.yml17
1 files changed, 10 insertions, 7 deletions
diff --git a/benchmark/vm2_struct_big_aset.yml b/benchmark/vm2_struct_big_aset.yml
index 4578876961..6af50103d3 100644
--- a/benchmark/vm2_struct_big_aset.yml
+++ b/benchmark/vm2_struct_big_aset.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_aset: 'x.k = i # x[10] = i
-
-'
-loop_count: 6000000
+ vm2_struct_big_aset: |
+ 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 # x[10] = i
+ end
+loop_count: 1