Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #84541 > unrolled thread

Re: Benchmarking some modules - strange result

Started byChris Angelico <rosuav@gmail.com>
First post2015-01-25 13:24 +1100
Last post2015-01-25 13:24 +1100
Articles 1 — 1 participant

Back to article view | Back to comp.lang.python

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  Re: Benchmarking some modules - strange result Chris Angelico <rosuav@gmail.com> - 2015-01-25 13:24 +1100

#84541 — Re: Benchmarking some modules - strange result

FromChris Angelico <rosuav@gmail.com>
Date2015-01-25 13:24 +1100
SubjectRe: Benchmarking some modules - strange result
Message-ID<mailman.18123.1422152675.18130.python-list@python.org>
On Sun, Jan 25, 2015 at 1:11 PM, Dan Stromberg <drsalists@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?

I don't know if you can truly reset the interpreter. Snapshotting
sys.modules and reinstating it afterwards would help, but there are
other concerns too. I would personally just restart the interpreter
each time, frankly; it's the easiest way to be sure.

ChrisA

[toc] | [standalone]


Back to top | Article view | comp.lang.python


csiph-web