import numpy as np
import numpy.linalg as la
import matplotlib.pyplot as pt
from time import process_time
def get_solve_time(n):
A = np.random.randn(n, n)
B = np.random.randn(n, n)
t_start = process_time()
A @ B
t_stop = process_time()
return t_stop-t_start
n_values = list(range(0, 1000, 10))
print(n_values)
times = [get_solve_time(n) for n in n_values]
pt.plot(n_values, times)
pt.grid()