Powersets of a list?

Bengt Richter bokr at accessone.com
Mon May 28 04:43:04 EDT 2001


On Mon, 28 May 2001 07:53:11 GMT, bokr at accessone.com (Bengt Richter)
wrote:

>On Sun, 27 May 2001 11:33:02 -0700, "Emile van Sebille"
><emile at fenx.com> wrote:
>>Timing results for four of the powerset generators posted to this thread
>>(format edited for usenet):
>>
>What about the effect of garbage collection? To be fair, shouldn't all
>timings be started after a fresh garbage collection, at least on an
>algorithm basis, if not each invocation?
>
Also try using time.clock() instead of time.time()
for ~20us instead of ~10ms resolution (on NT4sp3 300mhz P2)
The latter is on the order of your shorter timing results!

You might want to print more decimals and/or scale to milliseconds.




More information about the Python-list mailing list