summaryrefslogtreecommitdiff
path: root/benchmark/vm2_poly_method_ov.yml
diff options
context:
space:
mode:
Diffstat (limited to 'benchmark/vm2_poly_method_ov.yml')
-rw-r--r--benchmark/vm2_poly_method_ov.yml35
1 files changed, 20 insertions, 15 deletions
diff --git a/benchmark/vm2_poly_method_ov.yml b/benchmark/vm2_poly_method_ov.yml
index b77a588..3748073 100644
--- a/benchmark/vm2_poly_method_ov.yml
+++ b/benchmark/vm2_poly_method_ov.yml
@@ -1,19 +1,24 @@
-prelude: |
- class C1
- def m
- 1
+# loop_count is not utilized since `i` is involved in the script
+benchmark:
+ vm2_poly_method_ov: |
+ class C1
+ def m
+ 1
+ end
end
- end
- class C2
- def m
- 2
+ class C2
+ def m
+ 2
+ end
end
- end
- o1 = C1.new
- o2 = C2.new
-benchmark:
- vm2_poly_method_ov: |
- o = (i % 2 == 0) ? o1 : o2
+ o1 = C1.new
+ o2 = C2.new
+
+ i = 0
+ while i<6_000_000
+ o = (i % 2 == 0) ? o1 : o2
# o.m; o.m; o.m; o.m; o.m; o.m; o.m; o.m
-loop_count: 6000000
+ i += 1
+ end
+loop_count: 1