Each table row shows performance measurements for this Cython 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 fibonacci benchmark to see what this program should do.
import numpy import sys def fib(int n): return (numpy.matrix('1 1; 1 0', numpy.dtype('object')) ** n).tolist()[0][1] print(fib(int(sys.argv[1])))
Sun, 23 Apr 2023 09:13:21 GMT MAKE: make[1]: Vstupuje se do adresáře „/home/dundee/work/pybenchmarks/bencher/tmp/fibonacci/tmp“ cp fibonacci.cython `echo fibonacci.cython | sed 's/cython-..//' | sed 's/.cython//'`.pyx cythonize -3 -bi `echo fibonacci.cython | sed 's/cython-..//' | sed 's/.cython//'`.pyx Compiling /home/dundee/work/pybenchmarks/bencher/tmp/fibonacci/tmp/fibonacci.pyx because it changed. [1/1] Cythonizing /home/dundee/work/pybenchmarks/bencher/tmp/fibonacci/tmp/fibonacci.pyx make[1]: Opouští se adresář „/home/dundee/work/pybenchmarks/bencher/tmp/fibonacci/tmp“ 1.18s to complete and log all make actions COMMAND LINE: /usr/bin/python3 -c "import fibonacci" 1000000 PROGRAM FAILED PROGRAM OUTPUT: Traceback (most recent call last): File "<string>", line 1, in <module> File "fibonacci.pyx", line 8, in init fibonacci print(fib(int(sys.argv[1]))) ValueError: Exceeds the limit (4300) for integer string conversion; use sys.set_int_max_str_digits() to increase the limit