Time it takes python to process a given function? -
this question has answer here:
- how can profile script? 21 answers
i've written python script , it's conducting lot of string comparisons number of functions. if run current process take month complete. make code more efficient not sure should focus.
is there way of having python tell how long takes go through each of functions?
obviously, having calculate time takes process function take resources.
thank you
what you're looking profiler, here's place start: http://docs.python.org/2/library/profile.html
Comments
Post a Comment