summaryrefslogtreecommitdiff
path: root/benchmark/vm2_raise1.yml
diff options
context:
space:
mode:
Diffstat (limited to 'benchmark/vm2_raise1.yml')
-rw-r--r--benchmark/vm2_raise1.yml21
1 files changed, 21 insertions, 0 deletions
diff --git a/benchmark/vm2_raise1.yml b/benchmark/vm2_raise1.yml
new file mode 100644
index 0000000..4ca89ba
--- /dev/null
+++ b/benchmark/vm2_raise1.yml
@@ -0,0 +1,21 @@
+benchmark:
+ vm2_raise1: |
+ 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 1
+ rescue
+ # ignore
+ end
+ end
+loop_count: 1