[Tutor] How to compute performance of python program

Alan Gauld alan.gauld at btinternet.com
Tue Oct 21 11:19:35 CEST 2008

"rajasekhar mamilla" <sekhar926 at gmail.com> wrote in message 
news:a9943a4e0810210126q72268ad9ifdbc27bba2ffca6d at mail.gmail.com...
> Hi tutors,
> Iam relatively new to python.
> I  developed a project in python,now i want to know the performance 
> of my
> code.

Look at the timeit command and the profiling module.

Very simple profile example here:


Between them they should give you all the information you need.


Alan Gauld
Author of the Learn to Program web site

More information about the Tutor mailing list