Each table row shows performance measurements for this program with a particular command-line input value N.
N | CPU secs | Elapsed secs | Memory KB | Code B | ≈ CPU Load |
---|
Read the ↓ make, command line, and program output logs to see how this program was run.
Read benchmark to see what this program should do.
Python 3.3.1 (default, Apr 11 2013, 12:45:45) [GCC 4.7.2] on linux
import numpy import sys def fib(n): return (numpy.matrix('1 1; 1 0', numpy.dtype('object')) ** n).tolist()[0][1] print(fib(int(sys.argv[1])))
Sun, 30 Jul 2023 10:51:03 GMT COMMAND LINE: /usr/bin/python3 fibonacci.python3 1000000 PROGRAM FAILED PROGRAM OUTPUT: Traceback (most recent call last): File "/home/dundee/work/pybenchmarks/bencher/tmp/fibonacci/tmp/fibonacci.python3", line 8, in <module> print(fib(int(sys.argv[1]))) ValueError: Exceeds the limit (4300 digits) for integer string conversion; use sys.set_int_max_str_digits() to increase the limit