Path: csiph.com!fu-berlin.de!uni-berlin.de!not-for-mail From: Tony van der Hoff Newsgroups: comp.lang.python Subject: Pyhon 2.x or 3.x, which is faster? Date: Sun, 6 Mar 2016 11:34:12 +0000 Lines: 10 Message-ID: Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-Trace: news.uni-berlin.de QDw7ttrsywXuD7O0JrhIngs7MQi6QLAWrGVAAN8zGUBQ== Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.039 X-Spam-Evidence: '*H*': 0.92; '*S*': 0.00; 'subject:which': 0.09; 'python': 0.10; '2.7': 0.13; 'file,': 0.15; 'python3.': 0.16; 'received:io': 0.16; 'received:psf.io': 0.16; 'slightly': 0.23; 'thanks,': 0.24; "i've": 0.25; 'header:User-Agent:1': 0.26; 'van': 0.26; 'impression': 0.33; 'this?': 0.34; 'there': 0.36; 'faster': 0.36; 'to:addr:python-list': 0.36; 'subject:?': 0.36; 'received:localdomain': 0.38; 'hi,': 0.38; 'test': 0.39; 'received:192': 0.39; 'to:addr:python.org': 0.40; 'from:addr:tony': 0.84; 'received:192.168.1.7': 0.91 X-Virus-Scanned: Debian amavisd-new at mail.vanderhoff.org User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Icedove/38.5.0 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:104132 Hi, I've been experimenting with a short test program under python 2.7 and python 3.4.2. It's a simple read from file, and locate a word therein. I get the (subjective) impression that python2 is slightly faster than python3. Is that correct? Is there any documentation to support this? Thanks, -- Tony van der Hoff | mailto:tony@vanderhoff.org Buckinghamshire, England |