def chronograph():
    global fibonacci
    from time import time
    t0 = time()
    n = 32
    res = fibonacci(n)
    #res = [fibonacci(n) for n in range(30)]
    t1 = time()
    print(n, res, format(t0-t1, '0.6f'))

    t0 = time()
    res = fibonacci2(n)
    #res = [fibonacci2(n) for n in range(30)]
    t1 = time()
    print(n, res, format(t1-t0, '0.6f'))

    t0 = time()
    fibonacci = memoize(fibonacci)
    res = fibonacci(n)
    #res = [fibonacci2(n) for n in range(30)]
    t1 = time()
    print(n, res, format(t1-t0, '0.6f'))
dataset/ETHPy150Open fluentpython/example-code/attic/decorators/fibonacci.py/chronograph/swapped operands of `-`