Path: csiph.com!usenet.pasdenom.info!gegeweb.org!de-l.enfer-du-nord.net!feeder2.enfer-du-nord.net!feeds.phibee-telecom.net!newsfeed.xs4all.nl!newsfeed2.news.xs4all.nl!xs4all!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail Return-Path: 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; '"this': 0.03; 'from:addr:yahoo.co.uk': 0.04; 'skip:[ 20': 0.04; 'subject:Python': 0.06; 'facts': 0.09; 'lawrence': 0.09; 'received:80.91': 0.09; 'received:80.91.229': 0.09; 'received:gmane.org': 0.09; 'received:list': 0.09; '3.3,': 0.16; 'correctness': 0.16; 'fiddle': 0.16; 'gave.': 0.16; 'happily': 0.16; 'received:80.91.229.3': 0.16; 'received:plane.gmane.org': 0.16; 'ignore': 0.16; 'wrote:': 0.18; 'examples': 0.20; '>>>': 0.22; 'memory': 0.22; 'import': 0.22; '(in': 0.22; 'header:User- Agent:1': 0.23; 'example.': 0.24; 'instance,': 0.24; 'url:moin': 0.24; 'least': 0.26; 'subject:/': 0.26; 'header:X-Complaints- To:1': 0.27; 'header:In-Reply-To:1': 0.27; 'point': 0.28; 'chris': 0.29; 'am,': 0.29; 'have,': 0.30; 'code': 0.31; 'url:wiki': 0.31; 'usually': 0.31; '3.2': 0.31; 'bunch': 0.31; 'url:python': 0.33; '-----': 0.33; 'there': 0.35; 'done': 0.36; 'possible': 0.36; 'url:org': 0.36; 'example,': 0.37; 'performance': 0.37; 'being': 0.38; 'server': 0.38; 'handle': 0.38; 'to:addr:python-list': 0.38; 'to:addr:python.org': 0.39; 'enough': 0.39; 'received:org': 0.40; 'called': 0.40; 'read': 0.60; 'course': 0.61; "you're": 0.61; "you've": 0.63; 'show': 0.63; 'choose': 0.64; 'provide': 0.64; 'different': 0.65; 'believe': 0.68; 'production': 0.68; '600': 0.68; 'saving': 0.69; 'yourself': 0.78; '"it': 0.84; 'subject:long': 0.84; '2013': 0.98 X-Injected-Via-Gmane: http://gmane.org/ To: python-list@python.org From: Mark Lawrence Subject: Re: Performance of int/long in Python 3 Date: Mon, 01 Apr 2013 22:43:13 +0100 References: <5153f5ce$0$29984$c3e8da3$5496439d@news.astraweb.com> <11ef1d36-0783-4cb2-b29f-9ae573ed7e47@googlegroups.com> <6a146aba-a032-4aac-b2d3-7acedcebd804@q3g2000pbv.googlegroups.com> <515941d8$0$29967$c3e8da3$5496439d@news.astraweb.com> <5159beb6$0$29967$c3e8da3$5496439d@news.astraweb.com> <4103dc28-a0dc-4740-bb38-b6bcb58bedfb@h1g2000vbx.googlegroups.com> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Gmane-NNTP-Posting-Host: host-92-18-43-197.as13285.net User-Agent: Mozilla/5.0 (Windows NT 6.0; rv:17.0) Gecko/20130307 Thunderbird/17.0.4 In-Reply-To: X-Antivirus: avast! (VPS 130401-0, 01/04/2013), Outbound message X-Antivirus-Status: Clean X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Newsgroups: comp.lang.python Message-ID: Lines: 61 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1364852532 news.xs4all.nl 6982 [2001:888:2000:d::a6]:49161 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:42505 On 01/04/2013 21:28, jmfauth wrote: > On 1 avr, 21:28, Chris Angelico wrote: >> On Tue, Apr 2, 2013 at 6:15 AM, jmfauth wrote: >>> Py32 >>>>>> import timeit >>>>>> timeit.repeat("'a' * 1000 + 'ẞ'") >>> [0.7005365263669056, 0.6810694766790423, 0.6811978680727229] >>>>>> timeit.repeat("'a' * 1000 + 'z'") >>> [0.7105829560031083, 0.6904999426964764, 0.6938637184431968] >> >>> Py33 >>> import timeit >>> timeit.repeat("'a' * 1000 + 'ẞ'") >>> [1.1484035160337613, 1.1233738895227505, 1.1215708962703874] >>> timeit.repeat("'a' * 1000 + 'z'") >>> [0.6640958193635527, 0.6469043692851528, 0.6458961423900007] >> >> This is what's called a microbenchmark. Can you show me any instance >> in production code where an operation like this is done repeatedly, in >> a time-critical place? It's a contrived example, and it's usually >> possible to find regressions in any system if you fiddle enough with >> the example. Do you have, for instance, a web server that can handle >> 1000 tps on 3.2 and only 600 tps on 3.3, all other things being equal? >> >> ChrisA > > ----- > > Of course this is an example, as many I gave. Examples you may find in > apps. You've given many examples of the same type of micro benchmark, not many examples of different types of benchmark. > > Can you point and give at least a bunch of examples, showing > there is no regression, at least to contradict me. The only > one I succeed to see (in month), is the one given by Steven, a status > quo. Once again you deliberately choose to ignore the memory saving and correctness to concentrate on the performance slowdown in some cases. > > I will happily accept them. The only think I read is "this is faster", > "it has been tested", ... > I do not believe that you will ever accept any facts unless you yourself provide them. > jmf > -- If you're using GoogleCrap™ please read this http://wiki.python.org/moin/GoogleGroupsPython. Mark Lawrence