github.com/coyove/nj@v0.0.0-20221110084952-c7f8db1065c3/tests/bench/fib.py (about)

     1  import time
     2  start = time.time()
     3  def fib(n):
     4      if n < 2:
     5          return n
     6      return fib(n-1) + fib(n-2)
     7  
     8  print(fib(35), time.time() - start)