Python Versions Performance
Asked Answered
E

3

7

Where I can find a comparative speed benchmark between python versions?

For example the performance between 2.6, 2.7, 3.0 , 3.1 and 3.2 versions.

Eisenstein answered 16/8, 2011 at 19:36 Comment(0)
I
1

Pystone benchmark on 2.6,2.7,3.2:

(3.0 and 3.1 are probably slower than 3.2)

Iatric answered 16/8, 2011 at 19:37 Comment(2)
Is this "pystone" good for benchmarks?(or there is an official speed comparison?) Thank you anyways ;)Eisenstein
Hmm the URL levigross,com is dead. Can you link to a cached version, or else something else?Scabrous
E
4

The Python Software Foundation hosts a speed comparison site at https://speed.python.org/comparison/ that provides an overview of different benchmarks.

Currently, it only includes CPython versions (that are still supported) but PyPy has a similar site available at: https://speed.pypy.org/comparison/

Estrange answered 27/4, 2020 at 9:18 Comment(0)
I
1

Pystone benchmark on 2.6,2.7,3.2:

(3.0 and 3.1 are probably slower than 3.2)

Iatric answered 16/8, 2011 at 19:37 Comment(2)
Is this "pystone" good for benchmarks?(or there is an official speed comparison?) Thank you anyways ;)Eisenstein
Hmm the URL levigross,com is dead. Can you link to a cached version, or else something else?Scabrous
C
1

There is a Python module with various real-world performance tasks to measure different builds / versions of Python - performance.

You can install it with the following command:

pip install pyperformance

And run it with the following one to compare Python2 and Python3 on your system:

pyperformance run --python=python2 -o py2.json
pyperformance run --python=python3 -o py3.json
pyperformance compare py2.json py3.json
Chymotrypsin answered 8/3, 2019 at 15:28 Comment(2)
I get this error after installation: pyperformance: command not foundHie
try pip install pyperformance insteadMarcelenemarcelia

© 2022 - 2024 — McMap. All rights reserved.