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 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])))

 make, command-line, and program output logs

 Fri, 09 Sep 2022 06:00:29 GMT

COMMAND LINE:
 /usr/bin/pypy3 fibonacci.pypy3 1000000

PROGRAM FAILED 


PROGRAM OUTPUT:

Traceback (most recent call last):
  File "fibonacci.pypy3", line 1, in <module>
    import numpy
ModuleNotFoundError: No module named 'numpy'

Revised BSD license

  Home   Conclusions   License   Play