code for Computer Language Shootout

Robert Kern rkern at ucsd.edu
Wed Mar 16 00:06:28 EST 2005


Jacob Lee wrote:

> By the way - is there a good way to find out the maximum memory a program
> used (in the manner of the "time" command)? Other than downloading and
> running the shootout benchmark scripts, of course.

Inserting appropriate pauses with raw_input() and recording the memory 
usage using top(1) is a quick and dirty way.

-- 
Robert Kern
rkern at ucsd.edu

"In the fields of hell where the grass grows high
  Are the graves of dreams allowed to die."
   -- Richard Harter



More information about the Python-list mailing list