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