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

Tony van der Hoff tony at vanderhoff.org
Mon Mar 7 05:45:18 EST 2016


On 06/03/16 14:41, Steven D'Aprano wrote:
> On Sun, 6 Mar 2016 10:34 pm, 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?
>> I believe that, overall, Python 3 is still slightly slower than Python 2,
> but it's a near thing. Have a look at the latest performance benchmarks:
>> https://speed.python.org/comparison/
>> Eyeballing the graph, I estimate that the latest 3.x version is probably
> about 10% slower overall, although different benchmarks show different
> speeds.

Excellent, just what I was looking for. Thank you very much, Steven.
-- 
Tony van der Hoff | mailto:tony at vanderhoff.org
Buckinghamshire, England |


More information about the Python-list mailing list

AltStyle によって変換されたページ (->オリジナル) /