Python Speed

Ian Kelly ian.g.kelly at gmail.com
Wed Feb 27 19:15:33 EST 2013


On Wed, Feb 27, 2013 at 3:24 PM, Terry Reedy <tjreedy at udel.edu> wrote:
>> Py33
>>>>> timeit.repeat("{1:'abc需'}")
>> [0.2573893570572636, 0.24261832285651508, 0.24259548003601594]
>
> On my win system, I get a lower time for this:
> [0.16579443757208878, 0.1475787649924598, 0.14970205670637426]
>
>> Py323
>> timeit.repeat("{1:'abc需'}")
>> [0.11000708521282831, 0.0994753634273593, 0.09901023634051853]
>
> While I get the same time for 3.2.3.
> [0.11759353304428544, 0.09482448029000068, 0.09532802044164157]
>
> It seems that something about Jim's machine does not like 3.3.
> *nix will probably see even less of a difference. Times are in microseconds,
> so few programs will ever notice the difference.

Running the same tests in IDLE on my Windows XP laptop, I see similar
results to what jmf reports.  But from what Christian posted, it
sounds like this regression may have more to do with PEP 412 than PEP
393.



More information about the Python-list mailing list