Speed comparison. numpy vs python standard
问题 I made a few experiment and found a number of cases where python's standard random and math library is faster than numpy counterpart. I think there is a tendency that python's standard library is about 10x faster for small scale operation, while numpy is much faster for large scale (vector) operations. My guess is that numpy has some overhead which becomes dominant for small cases. My question is: Is my intuition correct? And will it be in general advisable to use the standard library rather