summaryrefslogtreecommitdiff
path: root/benchmark/vm1_attr_ivar_set.yml
diff options
context:
space:
mode:
Diffstat (limited to 'benchmark/vm1_attr_ivar_set.yml')
-rw-r--r--benchmark/vm1_attr_ivar_set.yml17
1 files changed, 17 insertions, 0 deletions
diff --git a/benchmark/vm1_attr_ivar_set.yml b/benchmark/vm1_attr_ivar_set.yml
new file mode 100644
index 0000000000..2f3cb82775
--- /dev/null
+++ b/benchmark/vm1_attr_ivar_set.yml
@@ -0,0 +1,17 @@
+benchmark:
+ vm1_attr_ivar_set: |
+ class C
+ attr_accessor :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
+ obj.a = 1
+ obj.b = 2
+ end
+loop_count: 1