aboutsummaryrefslogtreecommitdiffstats
path: root/benchmark/other-lang/fib.scm
diff options
context:
space:
mode:
Diffstat (limited to 'benchmark/other-lang/fib.scm')
-rw-r--r--benchmark/other-lang/fib.scm7
1 files changed, 7 insertions, 0 deletions
diff --git a/benchmark/other-lang/fib.scm b/benchmark/other-lang/fib.scm
new file mode 100644
index 0000000000..ea63503b11
--- /dev/null
+++ b/benchmark/other-lang/fib.scm
@@ -0,0 +1,7 @@
+(define (fib n)
+ (if (< n 3)
+ 1
+ (+ (fib (- n 1)) (fib (- n 2)))))
+
+(fib 34)
+