Il 07/06/2015 11:28, Steven D'Aprano ha scritto:
But if your function takes less than, say, 1 millisecond, then your timing results are probably just meaningless random numbers, affected more by the other ten thousand processes running on your computer than by the Python code itself.
That's a good point. IMHO test the time execution of a function makes sense only if all these assetions are true:
- the function takes a long time to be executed; - the execution is iterated a certain (large) number of times. -- Ciao! Luca -- https://mail.python.org/mailman/listinfo/python-list