aboutsummaryrefslogtreecommitdiffstats
path: root/benchmark/vm_super.yml
diff options
context:
space:
mode:
Diffstat (limited to 'benchmark/vm_super.yml')
-rw-r--r--benchmark/vm_super.yml17
1 files changed, 17 insertions, 0 deletions
diff --git a/benchmark/vm_super.yml b/benchmark/vm_super.yml
new file mode 100644
index 0000000000..0d1e965c6e
--- /dev/null
+++ b/benchmark/vm_super.yml
@@ -0,0 +1,17 @@
+prelude: |
+ class C
+ def m
+ 1
+ end
+ end
+
+ class CC < C
+ def m
+ super()
+ end
+ end
+
+ obj = CC.new
+benchmark:
+ vm_super: obj.m
+loop_count: 6000000