Time it takes python to process a given function? -


this question has answer here:

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

Popular posts from this blog

Why does Ruby on Rails generate add a blank line to the end of a file? -

node.js - Bad Request - node js ajax post -

uitableview - Create and use custom prototype table cells in xamarin ios using storyboard -