function that counts...

René 'Necoro' Neumann lists at necoro.eu
Wed May 19 17:31:51 EDT 2010


Am 19.05.2010 22:58, schrieb superpollo:
> 
> In [277]: prttn(25, 10000)
> Out[277]: 348
> 
> In [278]: prttn2(25, 10000)
> Out[278]: 348
> 
> In [279]: prttn3(25, 10000)
> Out[279]: 348
> 
> ok, bye!

Just because I was curios:

necoro at Zakarumiy ~ % python -m timeit "import test; test.prttn(25,10000)"
10 loops, best of 3: 108 msec per loop

necoro at Zakarumiy ~ % python -m timeit "import test; test.prttn2(25,10000)"
10 loops, best of 3: 157 msec per loop

necoro at Zakarumiy ~ % python -m timeit "import test; test.prttn3(25,10000)"
10 loops, best of 3: 137 msec per loop

Note: This is probably not representative ... just a quick check to get
a raw feeling.

- René

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 262 bytes
Desc: OpenPGP digital signature
URL: <http://mail.python.org/pipermail/python-list/attachments/20100519/1a4a8d08/attachment-0001.sig>


More information about the Python-list mailing list