From a7776077be7b1754b4306f00694a8f4d42009159 Mon Sep 17 00:00:00 2001 From: Koichi Sasada Date: Fri, 22 Oct 2021 18:06:36 +0900 Subject: [PATCH] add vm_ivar_of_class_set benchmark for a class's ivar setter --- benchmark/vm_ivar_of_class_set.yml | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 benchmark/vm_ivar_of_class_set.yml 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