How do you calculate program run time in python? -


this question has answer here:

how calculate program run time in python?

you might want take @ timeit module:

http://docs.python.org/library/timeit.html

or profile module:

http://docs.python.org/library/profile.html

there additionally nice tutorials here:

http://www.doughellmann.com/pymotw/profile/index.html

http://www.doughellmann.com/pymotw/timeit/index.html

and time module might come in handy, although prefer later 2 recommendations benchmarking , profiling code performance:

http://docs.python.org/library/time.html


Comments

Popular posts from this blog

php - What is the difference between $_SERVER['PATH_INFO'] and $_SERVER['ORIG_PATH_INFO']? -

fortran - Function return type mismatch -

queue - mq_receive: message too long -