Path: csiph.com!fu-berlin.de!uni-berlin.de!not-for-mail From: Peter Otten <__peter__@web.de> Newsgroups: comp.lang.python Subject: Re: Pyhon 2.x or 3.x, which is faster? Date: Sun, 06 Mar 2016 13:39:03 +0100 Organization: None Lines: 18 Message-ID: References: <56DC15B4.2080005@vanderhoff.org> Mime-Version: 1.0 Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: 7Bit X-Trace: news.uni-berlin.de 4UfWtWu9Gaf7VbDGvSd2AQ5ptD8rHRPDMC/q/XoC+MKQ== Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.000 X-Spam-Evidence: '*H*': 1.00; '*S*': 0.00; 'ideally': 0.04; 'source.': 0.05; 'received:80.91': 0.09; 'received:80.91.229': 0.09; 'received:gmane.org': 0.09; 'received:list': 0.09; 'subject:which': 0.09; 'python': 0.10; '2.7': 0.13; 'file,': 0.15; '(either': 0.16; 'python3.': 0.16; 'received:80.91.229.3': 0.16; 'received:dip0.t-ipconnect.de': 0.16; 'received:io': 0.16; 'received:plane.gmane.org': 0.16; 'received:psf.io': 0.16; 'received:t-ipconnect.de': 0.16; 'wrote:': 0.16; 'string': 0.17; 'runs': 0.18; 'slightly': 0.23; 'thanks,': 0.24; "i've": 0.25; 'header:User-Agent:1': 0.26; 'header:X-Complaints-To:1': 0.26; 'van': 0.26; 'operate': 0.32; 'impression': 0.33; 'this?': 0.34; 'there': 0.36; 'faster': 0.36; 'to:addr:python-list': 0.36; 'subject:?': 0.36; 'subject:: ': 0.37; 'received:org': 0.37; 'hi,': 0.38; 'test': 0.39; 'to:addr:python.org': 0.40; 'received:de': 0.40; 'provide': 0.61 X-Injected-Via-Gmane: http://gmane.org/ X-Gmane-NNTP-Posting-Host: p57bd86d1.dip0.t-ipconnect.de User-Agent: KNode/4.13.3 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:104136 Tony van der Hoff wrote: > Hi, I've been experimenting with a short test program under python 2.7 > and python 3.4.2. Ideally you would provide the source. > It's a simple read from file, and locate a word therein. Do both runs operate on the same kind of string (either bytestring or unicode)? > I get the (subjective) impression that python2 is slightly faster than > python3. Is that correct? Is there any documentation to support this? > > Thanks,