general save

This commit is contained in:
2023-05-15 17:14:49 +00:00
parent a8647951aa
commit 178fa676ca
14 changed files with 83507 additions and 50 deletions
+7 -8
View File
@@ -2,12 +2,11 @@ import numpy as np
import time
if __name__ == '__main__':
start = time.perf_counter()
a, b = np.random.rand(1024, 1024), np.random.rand(1024, 1024)
print(f'init time: {time.perf_counter() - start}')
start = time.perf_counter()
c = np.dot(a, b)
print(f'dot time: {time.perf_counter() - start}')
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}')