Path: csiph.com!fu-berlin.de!uni-berlin.de!not-for-mail From: Mark Lawrence Newsgroups: comp.lang.python Subject: Re: Pyhon 2.x or 3.x, which is faster? Date: Tue, 8 Mar 2016 02:53:36 +0000 Lines: 33 Message-ID: References: <87d1r6iltx.fsf@elektro.pacujo.net> Mime-Version: 1.0 Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit X-Trace: news.uni-berlin.de Lg3f/RKvRa1uIzPfnXdfTQgZeRlOMGH/c0CXEmo0k5+Q== Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.001 X-Spam-Evidence: '*H*': 1.00; '*S*': 0.00; 'cpython': 0.05; 'from:addr:yahoo.co.uk': 0.05; 'startup': 0.05; 'mentioned,': 0.07; 'pypy': 0.07; 'ignoring': 0.09; 'received:80.91': 0.09; 'received:80.91.229': 0.09; 'received:gmane.org': 0.09; 'received:list': 0.09; 'subject:which': 0.09; 'url:blog': 0.10; 'python': 0.10; 'python.': 0.11; '(also': 0.16; 'received:80.91.229.3': 0.16; 'received:io': 0.16; 'received:plane.gmane.org': 0.16; 'received:psf.io': 0.16; 'wrote:': 0.16; 'figures': 0.18; 'solution.': 0.18; 'language': 0.19; '>>>': 0.20; 'purposes': 0.20; 'amounts': 0.22; 'lawrence': 0.22; 'space.': 0.22; 'header:In-Reply-To:1': 0.24; "i've": 0.25; 'header:User-Agent:1': 0.26; "doesn't": 0.26; 'header:X -Complaints-To:1': 0.26; 'opposed': 0.27; 'tend': 0.27; '(although': 0.29; '20%': 0.29; 'starts': 0.29; "i'm": 0.30; 'language.': 0.32; 'similar': 0.33; 'world,': 0.35; 'exist': 0.35; 'problem.': 0.35; 'but': 0.36; 'too': 0.36; 'to:addr:python-list': 0.36; 'subject:?': 0.36; 'subject:: ': 0.37; 'received:org': 0.37; 'version': 0.38; 'skip:p 20': 0.38; 'data': 0.39; 'to:addr:python.org': 0.40; 'mark': 0.40; 'your': 0.60; 'real': 0.62; 'programs': 0.62; 'charset:windows-1252': 0.62; 'more': 0.63; 'our': 0.64; 'beat': 0.66; '3.4': 0.84; 'benchmark': 0.84; 'faster.': 0.84; 'pythonistas,': 0.84; 'url:tech': 0.84 X-Injected-Via-Gmane: http://gmane.org/ X-Gmane-NNTP-Posting-Host: 80.234.129.0 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:38.0) Gecko/20100101 Thunderbird/38.6.0 In-Reply-To: X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Xref: csiph.com comp.lang.python:104317 On 07/03/2016 11:38, BartC wrote: > On 07/03/2016 11:11, Marko Rauhamaa wrote: >> BartC : >> >>> I've also found that 3 was consistently slower than 2 on various >>> benchmarks. Perhaps 10 to 20% slower (also 3.4 vs. 2.7). >> >> Python doesn't exist for performance-critical parts of your solution. >> Also, Python programs tend to take huge amounts of space. > > I'm not complaining. For my purposes (implementing a similar language > that competes with Python for speed), I welcome the slower speed of > Python 3! > > (Although competing with CPython is too easy. PyPy is more of a problem. > With the Jpeg benchmark I mentioned, I can beat PyPy up to 6Mpix, but > then PyPy starts to get faster. At 80Mpix, PyPy is 60% faster.) > I suspect that all that is happening is you are ignoring the Python startup time, so the more data you process, the better the figures will look for any version of Python. As for the real world, as opposed to benchmarks, how about this https://www.willmcgugan.com/blog/tech/post/realtime-events-with-the-inthingio-python-api/ ? -- My fellow Pythonistas, ask not what our language can do for you, ask what you can do for our language. Mark Lawrence