summaryrefslogtreecommitdiff
path: root/benchmark/vm2_struct_small_href.yml
diff options
context:
space:
mode:
Diffstat (limited to 'benchmark/vm2_struct_small_href.yml')
-rw-r--r--benchmark/vm2_struct_small_href.yml16
1 files changed, 7 insertions, 9 deletions
diff --git a/benchmark/vm2_struct_small_href.yml b/benchmark/vm2_struct_small_href.yml
index 14b8efddbd..c98122a59d 100644
--- a/benchmark/vm2_struct_small_href.yml
+++ b/benchmark/vm2_struct_small_href.yml
@@ -1,10 +1,8 @@
+prelude: |
+ s = Struct.new(:a, :b, :c)
+ x = s.new
benchmark:
- vm2_struct_small_href: |
- 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_href: 'x[:a]
+
+'
+loop_count: 6000000