Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 3 of 3
  1. #1
    New Coder
    Join Date
    Mar 2006
    Posts
    69
    Thanks
    0
    Thanked 0 Times in 0 Posts

    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!

  • #2
    Master Coder
    Join Date
    Dec 2007
    Posts
    6,682
    Thanks
    436
    Thanked 890 Times in 879 Posts
    Quote Originally Posted by myriad360 View Post
    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/2...profiling.html

    best regards
    Last edited by oesxyl; 01-15-2009 at 11:40 PM.

  • #3
    New Coder
    Join Date
    Mar 2006
    Posts
    69
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Thanks! These are great! Sorry, I am going to play with this a little more, and report my findings.


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •