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


Groups > comp.lang.python > #40075

Python Speed

Path csiph.com!usenet.pasdenom.info!news.albasani.net!newsfeed.freenet.ag!news2.euro.net!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail
Return-Path <python-python-list@m.gmane.org>
X-Original-To python-list@python.org
Delivered-To python-list@mail.python.org
X-Spam-Status OK 0.004
X-Spam-Evidence '*H*': 0.99; '*S*': 0.00; 'skip:[ 20': 0.03; 'subject:Python': 0.05; 'cpython': 0.05; 'startup': 0.05; 'expectation': 0.09; 'imported': 0.09; 'received:80.91': 0.09; 'received:80.91.229': 0.09; 'received:gmane.org': 0.09; 'received:list': 0.09; 'terry': 0.09; 'url:peps': 0.09; '3.3.': 0.16; 'meanwhile': 0.16; 'received:80.91.229.3': 0.16; 'received:plane.gmane.org': 0.16; 'reedy': 0.16; 'url:speed': 0.16; 'url:dev': 0.17; 'jan': 0.18; 'module': 0.19; 'mostly': 0.20; 'trying': 0.21; 'needed.': 0.23; 'this:': 0.23; 'seems': 0.23; 'machine': 0.24; 'header:User-Agent:1': 0.26; 'am,': 0.27; 'header:X-Complaints-To:1': 0.28; 'actual': 0.28; '>>>>': 0.29; 'volunteers': 0.29; 'probably': 0.29; 'system,': 0.32; 'url:python': 0.32; 'getting': 0.33; 'to:addr:python-list': 0.33; 'another': 0.33; 'project': 0.34; 'done': 0.34; 'needed': 0.35; 'something': 0.35; 'there': 0.35; 'received:org': 0.36; 'but': 0.36; 'url:org': 0.36; 'does': 0.37; 'some': 0.38; 'sure': 0.38; 'instead': 0.39; 'to:addr:python.org': 0.39; 'notice': 0.39; 'build': 0.39; 'header:Received:5': 0.40; 'help': 0.40; 'further': 0.61; 'lower': 0.61; 'ever': 0.63; 'times': 0.63; 'more': 0.63; 'making': 0.64; 'real-world': 0.65; '8bit%:21': 0.69; 'building,': 0.71; '3.4': 0.84; 'benchmark': 0.84; 'difference.': 0.84; 'irrelevant': 0.84; 'received:fios.verizon.net': 0.84; 'reducing': 0.95
X-Injected-Via-Gmane http://gmane.org/
To python-list@python.org
From Terry Reedy <tjreedy@udel.edu>
Subject Python Speed
Date Wed, 27 Feb 2013 17:24:10 -0500
Mime-Version 1.0
Content-Type text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding quoted-printable
X-Gmane-NNTP-Posting-Host pool-173-75-251-66.phlapa.fios.verizon.net
User-Agent Mozilla/5.0 (Windows NT 6.1; WOW64; rv:17.0) Gecko/20130215 Thunderbird/17.0.3
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 <http://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 <http://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe>
Newsgroups comp.lang.python
Message-ID <mailman.2627.1362003871.2939.python-list@python.org> (permalink)
Lines 43
NNTP-Posting-Host 2001:888:2000:d::a6
X-Trace 1362003871 news.xs4all.nl 6933 [2001:888:2000:d::a6]:44591
X-Complaints-To abuse@xs4all.nl
Xref csiph.com comp.lang.python:40075

Show key headers only | View raw


On 2/27/2013 3:21 AM, jmfauth hijacked yet another thread:
 > Some are building, some are destroying.

We are still waiting for you to help build a better 3.3+, instead of 
trying to 'destroy' it with mostly irrelevant cherry-picked benchmarks.

 > 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.

In the meanwhile ... Effort was put into reducing startup time for 3.3 
by making sure that every module imported during startup actual needed 
to be imported, and into speeding up imports.

The startup process is getting a deeper inspection for 3.4
http://python.org/dev/peps/pep-0432/
'Simplifying the CPython startup sequence'
with some expectation for further speedup.

Also, a real-world benchmark project has been established.
http://speed.python.org/
Some work has already been done to port benchmarks to 3.x, but I suspect 
there is more to do and more volunteers needed.

-- 
Terry Jan Reedy

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


Thread

Python Speed Terry Reedy <tjreedy@udel.edu> - 2013-02-27 17:24 -0500
  Re: Python Speed jmfauth <wxjmfauth@gmail.com> - 2013-02-27 23:40 -0800
    Re: Python Speed Steven D'Aprano <steve+comp.lang.python@pearwood.info> - 2013-02-28 08:09 +0000

csiph-web