Thursday, January 22, 2009

Hamming numbers

Hi all,

I was wondering if we could start a discussion on the assignment of Lecture 2 (computing Hamming numbers in 3 different languages). I have gone ahead and used Matlab, Fortran95 and Python. I have the following questions:

* How do you test memory usage for codes such as Python, C, Fortran, Matlab?
* Is there a particular code profiling tool for Linux and/or (Intel) Mac OS X that people can recommend?

I would be interested in any comments, ideas and findings!

-Laura

3 comments:

  1. Hi,
    in Matlab you can use a GUI called M-file Profiler (Desktop->Profiler) to track the execution time.

    Reference:
    Performance in Matlab

    Ciro

    ReplyDelete
  2. I don't know exactly what you are looking for, Laura, but I guess that for Python you can find it (or the explanation/links to it) at http://docs.python.org/library/profile.html .

    ReplyDelete