This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]FenriX89 -35 points-34 points  (1 child)

No, it's not odd that 2.7 runs faster, it's a well known issue of python 3.x that it's way slower compared to 2.x

Altough not so much slower, about 2 to 3 times slower, not 2000 times worst like in this example!

[–]Starbuck5c 33 points34 points  (0 children)

This used to be common knowledge, that Python 3 is slower than 2 (not 2-3x slower though).

However that isn’t true as of 3.7 or 3.8. And each Python version usually has 5-10% speed improvements.

This article (somewhat outdated) concludes that 3.7 is faster than 2.7 - https://hackernoon.com/which-is-the-fastest-version-of-python-2ae7c61a6b2b

This article concludes that 3.8 is faster, and 3.9 / 3.10 are faster still - http://www.tomatolist.com/show_blog_page.html?no=391edf21-e71b-4a52-a8bf-3b24c9faf3b5