summaryrefslogtreecommitdiff
path: root/benchmark/vm_ivar_of_class_set.yml
diff options
context:
space:
mode:
Diffstat (limited to 'benchmark/vm_ivar_of_class_set.yml')
-rw-r--r--benchmark/vm_ivar_of_class_set.yml11
1 files changed, 11 insertions, 0 deletions
diff --git a/benchmark/vm_ivar_of_class_set.yml b/benchmark/vm_ivar_of_class_set.yml
new file mode 100644
index 0000000000..2ea5199423
--- /dev/null
+++ b/benchmark/vm_ivar_of_class_set.yml
@@ -0,0 +1,11 @@
+prelude: |
+ class C
+ @a = 1
+ def self.a o
+ @a = o; @a = o; @a = o; @a = o; @a = o; @a = o;
+ end
+ end
+benchmark:
+ vm_ivar_of_class_set: |
+ a = C.a(nil)
+loop_count: 30000000