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


Groups > comp.lang.python > #104134 > unrolled thread

Re: Pyhon 2.x or 3.x, which is faster?

Started byTerry Reedy <tjreedy@udel.edu>
First post2016-03-06 07:17 -0500
Last post2016-03-06 07:17 -0500
Articles 1 — 1 participant

Back to article view | Back to comp.lang.python

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  Re: Pyhon 2.x or 3.x, which is faster? Terry Reedy <tjreedy@udel.edu> - 2016-03-06 07:17 -0500

#104134 — Re: Pyhon 2.x or 3.x, which is faster?

FromTerry Reedy <tjreedy@udel.edu>
Date2016-03-06 07:17 -0500
SubjectRe: Pyhon 2.x or 3.x, which is faster?
Message-ID<mailman.240.1457266807.20602.python-list@python.org>
On 3/6/2016 6:34 AM, Tony van der Hoff wrote:
> 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?

The relative speed depends on the particular operation, the compiler and 
OS, and the particular 3.x.y version.  Since 3.3.0, string (unicode) 
operations have been sped up, sometimes by a lot.  If you are looking 
for string speed, get 3.4.4 or 3.5.1.

-- 
Terry Jan Reedy

[toc] | [standalone]


Back to top | Article view | comp.lang.python


csiph-web