PhysicsHipster:

I find it weird that for 10 weights, the program doesn’t run faster.


Look at it the other way, with 700 weights it doesn’t run 70 times slower, because various parallelization mechanisms amortize the time cost (until weights get too big). Plus, there is Amdahl’s law 5, that explains why time/size dependency is not linear.