Author ezio.melotti
Recipients BreamoreBoy, claymation, docs@python, ezio.melotti, rhettinger, serhiy.storchaka, steven.daprano
Date 2014-06-29.09:12:08
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1404033129.44.0.292126458168.issue18588@psf.upfronthosting.co.za>
In-reply-to
Content
I tried to run those timings again and the values I got from the terminal are close to the ones I got from the interactive interpreter.
I'm not sure why when I wrote those examples I got such different values.
It would be fine with me to update them and avoid confusion.

> In command-line invocation the gc is disabled.
> And timit.repeat() is used instead of timit.timit().

Looking at the current code it seems to me that the command-line uses timeit.repeat(), that repeat calls timeit.timeit(), and that timeit.timeit() disables the gc.  Maybe back then it was different; that would explain why I got different results.
History
Date User Action Args
2014-06-29 09:12:09ezio.melottisetrecipients: + ezio.melotti, rhettinger, steven.daprano, claymation, docs@python, BreamoreBoy, serhiy.storchaka
2014-06-29 09:12:09ezio.melottisetmessageid: <1404033129.44.0.292126458168.issue18588@psf.upfronthosting.co.za>
2014-06-29 09:12:09ezio.melottilinkissue18588 messages
2014-06-29 09:12:08ezio.melotticreate