I've been running some performance tests with Databricks, but I am struggling to make sense of the results.def g(a, b):
N = 1000
t1 = time.time()
for _ in range(N):
a**5 + 2 * b
t2 = time.time()
return (t2 - t1) / N
a = n...
Well, that's the point. I'm doing a calculation with arrays of size 2^24 (so roughly 17 million) and the loop is ensuring that the calculation is being repeated several times (in this case 1000 times). In the end, the function returns the average tim...
Thanks for the reply!How come that multicore is not relevant here? Numpy does support multi-threading and uses multiple cores on a standard PC.Where can I see the power of the CPUs of the cluster that I am using? A factor 4 speed difference still see...