summaryrefslogtreecommitdiff
path: root/benchmark/vm_attr_ivar.yml
diff options
context:
space:
mode:
Diffstat (limited to 'benchmark/vm_attr_ivar.yml')
-rw-r--r--benchmark/vm_attr_ivar.yml14
1 files changed, 14 insertions, 0 deletions
diff --git a/benchmark/vm_attr_ivar.yml b/benchmark/vm_attr_ivar.yml
new file mode 100644
index 0000000000..75b803478e
--- /dev/null
+++ b/benchmark/vm_attr_ivar.yml
@@ -0,0 +1,14 @@
+prelude: |
+ class C
+ attr_reader :a, :b
+ def initialize
+ @a = nil
+ @b = nil
+ end
+ end
+ obj = C.new
+benchmark:
+ vm_attr_ivar: |
+ j = obj.a
+ k = obj.b
+loop_count: 30000000