Add trivial fib benchmark.

This commit is contained in:
Bob Nystrom
2013-11-14 20:57:56 -08:00
parent cfb5193ce8
commit 1266578a4e
4 changed files with 49 additions and 0 deletions
+5
View File
@@ -0,0 +1,5 @@
def fib(n):
if n < 2: return n
return fib(n - 1) + fib(n - 2)
print fib(35)