summaryrefslogtreecommitdiff
path: root/benchmark/vm2_raise2.yml
diff options
context:
space:
mode:
Diffstat (limited to 'benchmark/vm2_raise2.yml')
-rw-r--r--benchmark/vm2_raise2.yml21
1 files changed, 21 insertions, 0 deletions
diff --git a/benchmark/vm2_raise2.yml b/benchmark/vm2_raise2.yml
new file mode 100644
index 0000000..d9455b8
--- /dev/null
+++ b/benchmark/vm2_raise2.yml
@@ -0,0 +1,21 @@
+benchmark:
+ vm2_raise2: |
+ def rec n
+ if n > 0
+ rec n-1
+ else
+ raise
+ end
+ end
+
+ i = 0
+ while i<6_000_000 # benchmark loop 2
+ i += 1
+
+ begin
+ rec 10
+ rescue
+ # ignore
+ end
+ end
+loop_count: 1