Helpful Information
 
 
Category: Python
Python / other code performance testing

I am working with a local university to optimize scientists' code, usually in Python, to help there scripts run more efficiently. I personally prefer C++, but that is just me. I have also never been able to bench programs before. I am wondering if there is a tool out there that allows someone to observe how many resources a program may take in the time it takes to complete a task, i.e. a simple Python script. My intention is to monitor the time it takes, the amount of memory, and process time, etc.

Thanks!

I am working with a local university to optimize scientists' code, usually in Python, to help there scripts run more efficiently. I personally prefer C++, but that is just me. I have also never been able to bench programs before. I am wondering if there is a tool out there that allows someone to observe how many resources a program may take in the time it takes to complete a task, i.e. a simple Python script. My intention is to monitor the time it takes, the amount of memory, and process time, etc.

Thanks!
try this:

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

and probably this will help:

http://www.onlamp.com/pub/a/python/2005/12/15/profiling.html

best regards

Thanks! These are great! Sorry, I am going to play with this a little more, and report my findings.










privacy (GDPR)