summaryrefslogtreecommitdiff
path: root/benchmark/vm1_attr_ivar.yml
diff options
context:
space:
mode:
Diffstat (limited to 'benchmark/vm1_attr_ivar.yml')
-rw-r--r--benchmark/vm1_attr_ivar.yml27
1 files changed, 12 insertions, 15 deletions
diff --git a/benchmark/vm1_attr_ivar.yml b/benchmark/vm1_attr_ivar.yml
index a5b3b33..f714dd9 100644
--- a/benchmark/vm1_attr_ivar.yml
+++ b/benchmark/vm1_attr_ivar.yml
@@ -1,17 +1,14 @@
+prelude: |
+ class C
+ attr_reader :a, :b
+ def initialize
+ @a = nil
+ @b = nil
+ end
+ end
+ obj = C.new
benchmark:
vm1_attr_ivar: |
- class C
- attr_reader :a, :b
- def initialize
- @a = nil
- @b = nil
- end
- end
- obj = C.new
- i = 0
- while i<30_000_000 # while loop 1
- i += 1
- j = obj.a
- k = obj.b
- end
-loop_count: 1
+ j = obj.a
+ k = obj.b
+loop_count: 30000000