程序師世界是廣大編程愛好者互助、分享、學習的平台,程序師世界有你更精彩!
首頁
編程語言
C語言|JAVA編程
Python編程
網頁編程
ASP編程|PHP編程
JSP編程
數據庫知識
MYSQL數據庫|SqlServer數據庫
Oracle數據庫|DB2數據庫
您现在的位置: 程式師世界 >> 編程語言 >  >> 更多編程語言 >> Python

45% faster, excellent Python 3.11 performance

編輯:Python

source :OSC The open source community

Python 3.11.0 The official version is expected this year 10 in , The first and second have been released Beta edition ; expect Beta Phase will be released 4 A version , Next pre release 3.11.0b3 Plans to 2022 year 6 month 16 Released on Thursday . In addition to the new language features and other improvements ,Python 3.11 It seems that the performance is excellent , Compared with the previous Python 3.x The version has achieved a very good upgrade .
More details can be found at Python Official documents :https://docs.python.org/3.11/whatsnew/3.11.html#faster-cpython
In view of this , Technology media Phoronix in the light of Python 3.11 Beta 1( The latest development version at the time of testing ) Some performance benchmarks have been conducted . take Python 3.11 Beta The performance of the is compared with that of earlier versions , Include Python 3.10.4、Python 3.9.13 and Python 3.8.13. All of these Python Versions are built from the source code on the same system with the same release configuration , And then we did various Python The benchmark , To understand Python 3.11 And previous Python Differences between versions . The test environment is as follows :

The test results are as follows :

First of all PyBench Python The benchmark . You can see Python 3.8 To 3.10 The performance of , But go to Python 3.11 Beta after , Shows a significant acceleration :Python 3.11 Beta The time to complete this set of script tests is about that of the previous version 84%.

PyPerformance Python Benchmark results show that ,Python 3.11 Beta Of speed-ups It looks very good .

The tester said ,Python 3.11 The performance improvements mentioned in the seem to be true and attractive . although Python 3.8 To Python 3.10 The performance of , No extensive performance improvements ; But for this reference implementation ,Python 3.11 Of speed-ups It's huge , And PHP In terms of PHP5 To PHP7 The optimization level is similar .

Next, we are approaching Python 3.11 When it's officially released , Testers will also issue further benchmark reports .

in general ,Python 3.11 Beta Better than the current Python 3.10.4 Stable version fast 41%, Than Python 3.8 Series fast 45%.
More data can be viewed OpenBenchmarking.org page :https://openbenchmarking.org/result/2205310-PTS-PYTHON3127
author :Sim1480

Game programming , A game development favorite ~

If the picture is not displayed for a long time , Please use Chrome Kernel browser .


  1. 上一篇文章:
  2. 下一篇文章:
Copyright © 程式師世界 All Rights Reserved