Python Versions Performance

a 夏天 提交于 2019-12-10 20:47:52

问题


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.


回答1:


Pystone benchmark on 2.6,2.7,3.2:

  • http://www.levigross.com/post/2340736877/pystone-benchmark-on-2-6-2-7-3-2

(3.0 and 3.1 are probably slower than 3.2)




回答2:


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 performance

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


来源:https://stackoverflow.com/questions/7083961/python-versions-performance

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!