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


Groups > comp.lang.python > #84545

Re: Benchmarking some modules - strange result

Path csiph.com!usenet.pasdenom.info!news.etla.org!news.stack.nl!newsfeed.xs4all.nl!newsfeed3a.news.xs4all.nl!xs4all!post.news.xs4all.nl!not-for-mail
Return-Path <rosuav@gmail.com>
X-Original-To python-list@python.org
Delivered-To python-list@mail.python.org
X-Spam-Status OK 0.002
X-Spam-Evidence '*H*': 1.00; '*S*': 0.00; 'interpreter': 0.05; 'interpreter.': 0.07; 'dan': 0.09; 'imported': 0.09; 'subject:modules': 0.09; 'yeah,': 0.09; 'cc:addr:python-list': 0.11; 'jan': 0.12; '24,': 0.16; 'cc:name:python list': 0.16; 'exiting': 0.16; 'from:addr:rosuav': 0.16; 'from:name:chris angelico': 0.16; 'guessing': 0.16; 'simplicity,': 0.16; 'sat,': 0.16; 'wrote:': 0.18; 'module': 0.19; '>>>': 0.22; 'import': 0.22; 'tests': 0.22; 'cc:addr:python.org': 0.22; 'script.': 0.24; "haven't": 0.24; 'cc:2**0': 0.24; "i've": 0.25; 'header:In-Reply- To:1': 0.27; 'chris': 0.29; 'message-id:@mail.gmail.com': 0.30; "i'm": 0.30; 'that.': 0.31; 'too.': 0.31; '25,': 0.31; 'staying': 0.31; 'subject:some': 0.31; 'probably': 0.32; 'covered': 0.32; 'stuff': 0.32; 'running': 0.33; 'beginning': 0.33; 'could': 0.34; 'created': 0.35; 'test': 0.35; 'but': 0.35; 'received:google.com': 0.35; 'next': 0.36; 'should': 0.36; 'performance': 0.37; 'pm,': 0.38; 'easy': 0.60; 'affect': 0.61; 'more': 0.64; 'within': 0.65; '2015': 0.84; 'ideas.': 0.84; 'to:none': 0.92
DKIM-Signature v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:cc :content-type; bh=O8NguBBXqBmaR0AwW47sLxGk3TarMVAQ6t5+8fansu8=; b=mggwrpetXx2fT/kK2/ZLxecn3JPEEtfGZSDGo744HdlmwxOxVL+w8JYO66ZJjURhCD tKY0vhA8bO+Zw+2GDslbGpNEUUrSAyKL/DU4I38nYyKLIgvIrRSHkqOZdn7B17Jj22JD zroEDUB6XBI/jXFsIb+JksLRcrz0oaW7cKbPhSplS1g2YLCmtY5bkAXP/y+soUgyLHVS A+jH8nQ2NFK/RZybOworpLw4oZJUZIxeZ9RX5+UEmD/uzB5iZBHHnjqzaKygH9//+6ts TiXCgOPczPwgZV46ZH55UdOUuVEPnOWGjd3lo2dZ11dwLYHUalnaCKVuMNrnAR+EGMmP dVnA==
MIME-Version 1.0
X-Received by 10.50.62.110 with SMTP id x14mr9870762igr.2.1422153472596; Sat, 24 Jan 2015 18:37:52 -0800 (PST)
In-Reply-To <CAGGBd_q33YGH9ZwOv4oTE6LERxbf55HyOM07TpWznjMumz1yKw@mail.gmail.com>
References <CAGGBd_rSazrC4yAt+CebeuvCJYjZWOXohoZHgTUtfGNZZtr5Ww@mail.gmail.com> <CAPTjJmr+9heLd44Ly=5oKrMcGBdBhWuDxmi_n1+izg=TxTB=sg@mail.gmail.com> <CAGGBd_q33YGH9ZwOv4oTE6LERxbf55HyOM07TpWznjMumz1yKw@mail.gmail.com>
Date Sun, 25 Jan 2015 13:37:52 +1100
Subject Re: Benchmarking some modules - strange result
From Chris Angelico <rosuav@gmail.com>
Cc Python List <python-list@python.org>
Content-Type text/plain; charset=UTF-8
X-BeenThere python-list@python.org
X-Mailman-Version 2.1.15
Precedence list
List-Id General discussion list for the Python programming language <python-list.python.org>
List-Unsubscribe <https://mail.python.org/mailman/options/python-list>, <mailto:python-list-request@python.org?subject=unsubscribe>
List-Archive <http://mail.python.org/pipermail/python-list/>
List-Post <mailto:python-list@python.org>
List-Help <mailto:python-list-request@python.org?subject=help>
List-Subscribe <https://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe>
Newsgroups comp.lang.python
Message-ID <mailman.18126.1422153941.18130.python-list@python.org> (permalink)
Lines 21
NNTP-Posting-Host 2001:888:2000:d::a6
X-Trace 1422153941 news.xs4all.nl 2930 [2001:888:2000:d::a6]:43137
X-Complaints-To abuse@xs4all.nl
Xref csiph.com comp.lang.python:84545

Show key headers only | View raw


On Sun, Jan 25, 2015 at 1:36 PM, Dan Stromberg <drsalists@gmail.com> wrote:
> On Sat, Jan 24, 2015 at 6:24 PM, Chris Angelico <rosuav@gmail.com> wrote:
>> 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?
>
> 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

Back to comp.lang.python | Previous | Next | Find similar | Unroll thread


Thread

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

csiph-web