Python Interpreters Benchmarks
x64 ArchLinux : AMD® Ryzen 7 4700U®

 performance measurements

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.

 notes

  source code

import sys


def fib(n):
    a, b = 0, 1
    for i in range(n):
        a, b = b, a + b
    return a

print(fib(int(sys.argv[1])))

 make, command-line, and program output logs

 Sun, 23 Apr 2023 09:12:41 GMT

MAKE:
make[1]: Vstupuje se do adresáře „/home/dundee/work/pybenchmarks/bencher/tmp/fibonacci/tmp“
nuitka3 --remove-output fibonacci.nuitka-2.nuitka
Nuitka-Options:INFO: Used command line options: --remove-output fibonacci.nuitka-2.nuitka
Nuitka-Options:WARNING: You did not specify to follow or include anything but main program. Check options and make sure that is intended.
Nuitka:INFO: Starting Python compilation with Nuitka '1.5' on Python '3.10' commercial grade 'not installed'.
Nuitka:INFO: Completed Python level compilation and optimization.
Nuitka:INFO: Generating source code for C backend compiler.
Nuitka:INFO: Running data composer tool for optimal constant value handling.
Nuitka:INFO: Running C compilation via Scons.
Nuitka-Scons:INFO: Backend C compiler: gcc (gcc).
Nuitka-Scons:INFO: Backend linking program with 7 files (no progress information available).
Nuitka-Scons:WARNING: You are not using ccache.
Nuitka:INFO: Removing build directory 'fibonacci.nuitka-2.nuitka.build'.
Nuitka:INFO: Successfully created 'fibonacci.nuitka-2.nuitka.bin'.
cp fibonacci.nuitka-2.nuitka.bin fibonacci.nuitka-2.nuitka_run
make[1]: Opouští se adresář „/home/dundee/work/pybenchmarks/bencher/tmp/fibonacci/tmp“
14.31s to complete and log all make actions

COMMAND LINE:
 ./fibonacci.nuitka-2.nuitka_run 1000000

PROGRAM FAILED 


PROGRAM OUTPUT:

Traceback (most recent call last):
  File "/home/dundee/work/pybenchmarks/bencher/tmp/fibonacci/tmp/fibonacci.nuitka-2.nuitka", line 10, in <module>
    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

Revised BSD license

  Home   Conclusions   License   Play