measuring python code efficiency

Felipe Bastos Nunes felipe.bastosn at
Sat Oct 23 18:11:44 CEST 2010

Theres the time module and the timeit() function to evaluate time to
execute. For memory usage and cpu usage i can't remember exactly. I
read the profile and cprofile documentation, and, in my opinion, help
in somethings you wanna do.

2010/10/23, n.a.s <nn.roh1 at>:
> Hi all,
> I use to program in many languages ,currently i 'm working in python ,i
> wonder if their is any way-program to measure my code , for example memory
> usage , cpu speed - because of the ability to write one program in many ways
> , how i can evaluate my code?
> Many thanks,
> n.a.s

Felipe Bastos Nunes

More information about the Python-list mailing list