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.yml27
1 files changed, 12 insertions, 15 deletions
diff --git a/benchmark/vm1_attr_ivar_set.yml b/benchmark/vm1_attr_ivar_set.yml
index 2f3cb82..f383e59 100644
--- a/benchmark/vm1_attr_ivar_set.yml
+++ b/benchmark/vm1_attr_ivar_set.yml
@@ -1,17 +1,14 @@
+prelude: |
+ class C
+ attr_accessor :a, :b
+ def initialize
+ @a = nil
+ @b = nil
+ end
+ end
+ obj = C.new
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
+ obj.a = 1
+ obj.b = 2
+loop_count: 30000000