list comparison vs integer comparison, which is more efficient?

Chris Angelico rosuav at gmail.com
Sun Jan 4 07:25:46 EST 2015


On Sun, Jan 4, 2015 at 11:17 PM, austin aigbe <eshikafe at gmail.com> wrote:
> However, it took a shorter time (0.004s) with 24 function calls than your code (0.005s) which took just 13 function calls to execute.
>
> Why is this?

That looks to me like noise in your stats. One ULP in timing stats?
Not something to base *anything* on.

ChrisA



More information about the Python-list mailing list