summaryrefslogtreecommitdiff
path: root/benchmark/vm2_zsuper.yml
diff options
context:
space:
mode:
Diffstat (limited to 'benchmark/vm2_zsuper.yml')
-rw-r--r--benchmark/vm2_zsuper.yml33
1 files changed, 14 insertions, 19 deletions
diff --git a/benchmark/vm2_zsuper.yml b/benchmark/vm2_zsuper.yml
index bde57beaad..f760cfd48e 100644
--- a/benchmark/vm2_zsuper.yml
+++ b/benchmark/vm2_zsuper.yml
@@ -1,23 +1,18 @@
-benchmark:
- vm2_zsuper: |
- i = 0
-
- class C
- def m a
- 1
- end
+prelude: |
+ class C
+ def m a
+ 1
end
+ end
- class CC < C
- def m a
- super
- end
+ class CC < C
+ def m a
+ super
end
+ end
- obj = CC.new
-
- while i<6_000_000 # benchmark loop 2
- obj.m 10
- i += 1
- end
-loop_count: 1
+ obj = CC.new
+benchmark:
+ vm2_zsuper: |
+ obj.m 10
+loop_count: 6000000