...

View Full Version : Python / other code performance testing



myriad360
01-15-2009, 09:56 PM
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!

oesxyl
01-15-2009, 10:38 PM
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

myriad360
01-23-2009, 01:33 AM
Thanks! These are great! Sorry, I am going to play with this a little more, and report my findings.



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum