summaryrefslogtreecommitdiff
path: root/benchmark/app_factorial.yml
diff options
context:
space:
mode:
Diffstat (limited to 'benchmark/app_factorial.yml')
-rw-r--r--benchmark/app_factorial.yml14
1 files changed, 14 insertions, 0 deletions
diff --git a/benchmark/app_factorial.yml b/benchmark/app_factorial.yml
new file mode 100644
index 0000000..9db58e1
--- /dev/null
+++ b/benchmark/app_factorial.yml
@@ -0,0 +1,14 @@
+benchmark:
+ app_factorial: |
+ def fact(n)
+ if(n > 1)
+ n * fact(n-1)
+ else
+ 1
+ end
+ end
+
+ 100.times {
+ fact(5000)
+ }
+loop_count: 1