import numpy as np import time if __name__ == '__main__': l = [] while True: start = time.perf_counter() a, b = np.random.rand(10240, 1024), np.random.rand(10240, 1024) l.append([a,b]) c = a * b print(f'init time: {time.perf_counter() - start}')