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.yml17
1 files changed, 17 insertions, 0 deletions
diff --git a/benchmark/vm1_attr_ivar.yml b/benchmark/vm1_attr_ivar.yml
new file mode 100644
index 0000000000..a5b3b336e1
--- /dev/null
+++ b/benchmark/vm1_attr_ivar.yml
@@ -0,0 +1,17 @@
+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