summaryrefslogtreecommitdiff
path: root/benchmark/vm2_struct_big_aref_lo.yml
diff options
context:
space:
mode:
Diffstat (limited to 'benchmark/vm2_struct_big_aref_lo.yml')
-rw-r--r--benchmark/vm2_struct_big_aref_lo.yml16
1 files changed, 7 insertions, 9 deletions
diff --git a/benchmark/vm2_struct_big_aref_lo.yml b/benchmark/vm2_struct_big_aref_lo.yml
index 5e16d6768c..17b2b0ca5e 100644
--- a/benchmark/vm2_struct_big_aref_lo.yml
+++ b/benchmark/vm2_struct_big_aref_lo.yml
@@ -1,10 +1,8 @@
+prelude: |
+ s = Struct.new(*('a'..'z').map { |x| x.to_sym })
+ x = s.new
benchmark:
- vm2_struct_big_aref_lo: |
- s = Struct.new(*('a'..'z').map { |x| x.to_sym })
- x = s.new
- i = 0
- while i<6_000_000 # benchmark loop 2
- i += 1
- x.k # x[10]
- end
-loop_count: 1
+ vm2_struct_big_aref_lo: 'x.k # x[10]
+
+'
+loop_count: 6000000