Add python benchmark

This commit is contained in:
Théophile Bastian 2019-07-15 21:36:31 +02:00
parent 4846775529
commit b9c6f748ce

View file

@ -0,0 +1,8 @@
def slow_fibo(n):
if n <= 1:
return 1
return slow_fibo(n - 1) + slow_fibo(n - 2)
if __name__ == "__main__":
slow_fibo(35)