Re: Profiling very small/quick functions, help!?

2008-04-16 Thread Aaron Watters
On Apr 16, 12:35 pm, [EMAIL PROTECTED] wrote: > if __name__=="__main__": > try: > from cProfile import run > except: > from profile import run > for x in range(1, 1): > run("power(10,10)") def test1(): for x in xrange(1,1): test = power(10,10

Profiling very small/quick functions, help!?

2008-04-16 Thread skanemupp
i use this code to profile. however for small standard functions it just says 0 seconds. so one solution is to run the function a very big number of times(how big?). but the bottom code doesnt work, it just runs the same profiling 1 times insetad of running the fucntion 10K times and evaluate t