Benchmarking some modules - strange result

Chris Angelico rosuav at gmail.com
Sat Jan 24 21:37:52 EST 2015


On Sun, Jan 25, 2015 at 1:36 PM, Dan Stromberg <drsalists at gmail.com> wrote:
> On Sat, Jan 24, 2015 at 6:24 PM, Chris Angelico <rosuav at gmail.com> wrote:
>> On Sun, Jan 25, 2015 at 1:11 PM, Dan Stromberg <drsalists at gmail.com> wrote:
>>> For simplicity, let's say I've been running the suite of performance
>>> tests within a single interpreter - so I test one module thoroughly,
>>> then move on to the next without exiting the interpreter.
>>> [chomp more details]
>>
>> Do the modules import stuff that's staying imported? That could
>> majorly affect performance. What about .pyc files?
>
> The modules are all imported up at the top of the script.  I haven't
> verified this, but I'm guessing the .pyc's are created at the
> beginning too.

Yeah, so it's probably not that. I should have known you'd have
covered the easy possibilities already :)

That's me out of ideas.

ChrisA



More information about the Python-list mailing list