Login
Newsletter
Werbung

Thema: Python-Interpreter PyPy 7.2 freigegeben

6 Kommentar(e) || Alle anzeigen ||  RSS || Kommentieren
Kommentare von Lesern spiegeln nicht unbedingt die Meinung der Redaktion wider.
0
Von Robert am Do, 17. Oktober 2019 um 10:19 #

pypy3


Test minimum average operation overhead
-------------------------------------------------------------------------------
BuiltinFunctionCalls: 0ms 5ms 0.01us 0.005ms
BuiltinMethodLookup: 0ms 1ms 0.00us 0.005ms
CompareFloats: 0ms 1ms 0.00us 0.005ms
CompareFloatsIntegers: 0ms 1ms 0.00us 0.003ms
CompareIntegers: 0ms 1ms 0.00us 0.009ms
CompareInternedStrings: 0ms 1ms 0.00us 0.023ms
CompareLongs: 0ms 1ms 0.00us 0.003ms
CompareStrings: 0ms 1ms 0.00us 0.015ms
ComplexPythonFunctionCalls: 7ms 9ms 0.05us 0.006ms
ConcatStrings: 0ms 1ms 0.00us 0.012ms
CreateInstances: 13ms 15ms 0.13us 0.013ms
CreateNewInstances: 9ms 14ms 0.17us 0.012ms
CreateStringsWithConcat: 0ms 1ms 0.00us 0.014ms
DictCreation: 0ms 1ms 0.00us 0.004ms
DictWithFloatKeys: 38ms 42ms 0.05us 0.010ms
DictWithIntegerKeys: 10ms 11ms 0.01us 0.014ms
DictWithStringKeys: 13ms 14ms 0.01us 0.016ms
ForLoops: 3ms 6ms 0.26us 0.003ms
IfThenElse: 0ms 1ms 0.00us 0.012ms
ListSlicing: 18ms 18ms 1.31us 0.003ms
NestedForLoops: 10ms 10ms 0.01us 0.003ms
NestedListComprehensions: 8ms 11ms 0.94us 0.002ms
NormalClassAttribute: 5ms 6ms 0.01us 0.011ms
NormalInstanceAttribute: 4ms 5ms 0.00us 0.023ms
PythonFunctionCalls: 0ms 2ms 0.01us 0.007ms
PythonMethodCalls: 53ms 58ms 0.26us 0.012ms
Recursion: 6ms 7ms 0.14us 0.008ms
SecondImport: 115ms 126ms 1.26us 0.003ms
SecondPackageImport: 118ms 121ms 1.21us 0.003ms
SecondSubmoduleImport: 128ms 134ms 1.34us 0.003ms
SimpleComplexArithmetic: 0ms 1ms 0.00us 0.007ms
SimpleDictManipulation: 12ms 16ms 0.01us 0.008ms
SimpleFloatArithmetic: 0ms 1ms 0.00us 0.010ms
SimpleIntFloatArithmetic: 0ms 1ms 0.00us 0.010ms
SimpleIntegerArithmetic: 0ms 1ms 0.00us 0.010ms
SimpleListComprehensions: 6ms 8ms 0.70us 0.003ms
SimpleListManipulation: 3ms 4ms 0.00us 0.011ms
SimpleLongArithmetic: 0ms 1ms 0.00us 0.005ms
SmallLists: 3ms 4ms 0.01us 0.007ms
SmallTuples: 0ms 1ms 0.00us 0.007ms
SpecialClassAttribute: 5ms 6ms 0.00us 0.011ms
SpecialInstanceAttribute: 4ms 5ms 0.00us 0.024ms
StringMappings: 574ms 589ms 2.34us 0.022ms
StringPredicates: 6ms 8ms 0.01us 0.143ms
StringSlicing: 0ms 1ms 0.00us 0.016ms
TryExcept: 0ms 0ms 0.00us 0.012ms
TryFinally: 0ms 2ms 0.01us 0.007ms
TryRaiseExcept: 0ms 1ms 0.01us 0.007ms
TupleSlicing: 38ms 38ms 0.15us 0.003ms
WithFinally: 0ms 2ms 0.01us 0.007ms
WithRaiseExcept: 0ms 1ms 0.02us 0.008ms


python3.7

Test minimum average operation overhead
-------------------------------------------------------------------------------
BuiltinFunctionCalls: 47ms 49ms 0.10us 0.098ms
BuiltinMethodLookup: 24ms 25ms 0.02us 0.115ms
CompareFloats: 18ms 18ms 0.01us 0.131ms
CompareFloatsIntegers: 29ms 29ms 0.03us 0.098ms
CompareIntegers: 28ms 28ms 0.02us 0.198ms
CompareInternedStrings: 25ms 25ms 0.02us 0.499ms
CompareLongs: 16ms 16ms 0.02us 0.115ms
CompareStrings: 24ms 24ms 0.02us 0.337ms
ComplexPythonFunctionCalls: 32ms 32ms 0.16us 0.165ms
ConcatStrings: 19ms 21ms 0.04us 0.193ms
CreateInstances: 30ms 31ms 0.27us 0.146ms
CreateNewInstances: 22ms 24ms 0.28us 0.116ms
CreateStringsWithConcat: 44ms 45ms 0.04us 0.325ms
DictCreation: 24ms 24ms 0.06us 0.129ms
DictWithFloatKeys: 33ms 34ms 0.04us 0.252ms
DictWithIntegerKeys: 28ms 29ms 0.02us 0.327ms
DictWithStringKeys: 25ms 25ms 0.02us 0.324ms
ForLoops: 18ms 19ms 0.76us 0.036ms
IfThenElse: 23ms 23ms 0.02us 0.244ms
ListSlicing: 33ms 33ms 2.38us 0.022ms
NestedForLoops: 22ms 22ms 0.01us 0.014ms
NestedListComprehensions: 31ms 32ms 2.63us 0.032ms
NormalClassAttribute: 66ms 67ms 0.06us 0.167ms
NormalInstanceAttribute: 30ms 31ms 0.03us 0.192ms
PythonFunctionCalls: 26ms 26ms 0.08us 0.097ms
PythonMethodCalls: 32ms 33ms 0.15us 0.054ms
Recursion: 50ms 51ms 1.02us 0.168ms
SecondImport: 8ms 8ms 0.08us 0.066ms
SecondPackageImport: 10ms 10ms 0.10us 0.066ms
SecondSubmoduleImport: 21ms 21ms 0.21us 0.066ms
SimpleComplexArithmetic: 22ms 23ms 0.03us 0.134ms
SimpleDictManipulation: 55ms 56ms 0.05us 0.192ms
SimpleFloatArithmetic: 22ms 22ms 0.02us 0.202ms
SimpleIntFloatArithmetic: 24ms 25ms 0.02us 0.204ms
SimpleIntegerArithmetic: 24ms 24ms 0.02us 0.202ms
SimpleListComprehensions: 26ms 27ms 2.26us 0.033ms
SimpleListManipulation: 25ms 26ms 0.02us 0.218ms
SimpleLongArithmetic: 16ms 16ms 0.02us 0.100ms
SmallLists: 28ms 28ms 0.04us 0.133ms
SmallTuples: 30ms 30ms 0.06us 0.151ms
SpecialClassAttribute: 66ms 67ms 0.06us 0.167ms
SpecialInstanceAttribute: 30ms 30ms 0.03us 0.167ms
StringMappings: 53ms 53ms 0.21us 0.140ms
StringPredicates: 23ms 24ms 0.03us 0.495ms
StringSlicing: 30ms 31ms 0.05us 0.274ms
TryExcept: 14ms 14ms 0.01us 0.252ms
TryFinally: 17ms 17ms 0.11us 0.129ms
TryRaiseExcept: 10ms 10ms 0.15us 0.134ms
TupleSlicing: 35ms 36ms 0.14us 0.013ms
WithFinally: 27ms 27ms 0.17us 0.129ms
WithRaiseExcept: 26ms 26ms 0.33us 0.162ms
-------------------------------------------------------------------------------

  • 0
    Von Potz Blitz am Fr, 18. Oktober 2019 um 10:25 #

    Das liest sich ziemlich beeindruckend. Aber das Problem sind die ganzen Erweiterungen die es für (C)Python gibt: numpy, mathplutlib, ... Auf die bin ich angewiesen.

    • 0
      Von Robert am Fr, 18. Oktober 2019 um 15:19 #

      Das meiste kannst du natürlich mit pip installieren. Nachdem du pypy3 kompiliert hast, kannst du dir mit diesem Befehl pip installieren. pypy3 -m ensurepip
      Ohne pip könnte ich pypy3 nicht sinnvoll nutzen. Gruss aus Berlin.

      • 0
        Von Robert am Fr, 18. Oktober 2019 um 17:30 #

        matplotlib und Numpy nutze ich auch mit pypy. Auch Sachen wie pandas, requests, flask-* django funktioniert wunderbar.

        • 0
          Von Robert am Fr, 18. Oktober 2019 um 17:34 #

          Diese Libs sind bei mir derzeit installiert und funktionieren recht gut.

          aiohttp==3.6.1
          alembic==1.2.1
          aniso8601==8.0.0
          appdirs==1.4.3
          asn1crypto==1.0.1
          astroid==2.3.1
          async-timeout==3.0.1
          atomicwrites==1.3.0
          attrs==19.2.0
          Automat==0.7.0
          Babel==2.7.0
          backcall==0.1.0
          bcrypt==3.1.7
          beautifulsoup4==4.8.0
          bleach==3.1.0
          blinker==1.4
          boto3==1.9.243
          botocore==1.12.243
          bottle==0.12.17
          bs4==0.0.1
          certifi==2019.9.11
          cffi==1.13.0
          chardet==3.0.4
          Click==7.0
          constantly==15.1.0
          cryptography==2.7
          cssselect==1.1.0
          cycler==0.10.0
          Cython==0.29.13
          decorator==4.4.0
          defusedxml==0.6.0
          docker==4.1.0
          docutils==0.15.2
          dominate==2.4.0
          entrypoints==0.3
          et-xmlfile==1.0.1
          fake-useragent==0.1.11
          Flask==1.1.1
          Flask-Admin==1.5.3
          Flask-BabelEx==0.9.3
          Flask-Bcrypt==0.7.1
          Flask-Bootstrap==3.3.7.1
          Flask-Cache==0.13.1
          Flask-CKEditor==0.4.3
          Flask-Limiter==1.1.0
          Flask-Login==0.4.1
          Flask-Mail==0.9.1
          Flask-Migrate==2.5.2
          flask-msearch==0.2.3
          Flask-MySQLdb==0.2.0
          Flask-Principal==0.4.0
          Flask-RESTful==0.3.7
          Flask-Security==3.0.0
          Flask-Shelve==0.1.1
          Flask-Sockets==0.2.1
          Flask-SQLAlchemy==2.4.1
          Flask-SSE==0.2.1
          Flask-Uploads==0.2.1
          Flask-WhooshAlchemy==0.56
          Flask-WTF==0.14.2
          gevent==1.4.0
          gevent-websocket==0.10.1
          greenlet==0.4.13
          gspread==3.1.0
          httplib2==0.14.0
          hyperlink==19.0.0
          idna==2.8
          idna-ssl==1.1.0
          importlib-metadata==0.23
          incremental==17.5.0
          ipykernel==5.1.2
          ipython==7.8.0
          ipython-genutils==0.2.0
          isort==4.3.21
          itsdangerous==1.1.0
          jdcal==1.4.1
          jedi==0.15.1
          Jinja2==2.10.3
          jmespath==0.9.4
          jsonschema==3.0.2
          jupyter-client==5.3.3
          jupyter-core==4.5.0
          kiwisolver==1.1.0
          lazy-object-proxy==1.4.2
          limits==1.3
          lxml==4.4.1
          Mako==1.1.0
          MarkupSafe==1.1.1
          matplotlib==3.1.1
          mccabe==0.6.1
          mistune==0.8.4
          more-itertools==7.2.0
          MouseInfo==0.0.4
          multidict==4.5.2
          mysqlclient==1.4.4
          nbconvert==5.6.0
          nbformat==4.4.0
          notebook==6.0.1
          Nuitka==0.6.5
          numpy==1.17.2
          oauth2client==4.1.3
          openpyxl==3.0.0
          packaging==19.2
          pandas==0.25.1
          pandocfilters==1.4.2
          paramiko==2.6.0
          parse==1.12.1
          parsel==1.5.2
          parso==0.5.1
          passlib==1.7.1
          pexpect==4.7.0
          pickleshare==0.7.5
          Pillow==6.2.0
          pluggy==0.13.0
          prometheus-client==0.7.1
          prompt-toolkit==2.0.10
          ptyprocess==0.6.0
          py==1.8.0
          pyasn1==0.4.7
          pyasn1-modules==0.2.6
          PyAutoGUI==0.9.47
          PyBluez==0.22
          PyDispatcher==2.0.5
          pyee==6.0.0
          PyGetWindow==0.0.7
          Pygments==2.4.2
          PyHamcrest==1.9.0
          PyJWT==1.7.1
          pylint==2.4.2
          PyMsgBox==1.0.7
          PyMySQL==0.9.3
          PyNaCl==1.3.0
          pyOpenSSL==19.0.0
          pyparsing==2.4.2
          pyperclip==1.7.0
          pyppeteer==0.0.25
          PyPyDispatcher==2.1.2
          pyquery==1.4.0
          PyRect==0.1.4
          pyrsistent==0.15.4
          PyScreeze==0.1.22
          PySocks==1.7.1
          pytest==5.2.0
          python-dateutil==2.8.0
          python-docx==0.8.10
          python-editor==1.0.4
          python3-xlib==0.15
          PyTweening==1.0.3
          pytz==2019.2
          pyzmq==18.1.0
          queuelib==1.5.0
          readline==6.2.4.1
          redis==3.3.8
          requests==2.22.0
          requests-html==0.10.0
          rise==5.5.1
          rsa==4.0
          s3transfer==0.2.1
          scp==0.13.2
          Scrapy==1.7.3
          selenium==3.141.0
          Send2Trash==1.5.0
          service-identity==18.1.0
          simplejson==3.16.0
          six==1.12.0
          slackclient==2.2.0
          soupsieve==1.9.4
          speaklater==1.3
          SQLAlchemy==1.3.9
          terminado==0.8.2
          testpath==0.4.2
          tornado==6.0.3
          tqdm==4.36.1
          traitlets==4.3.3
          twilio==6.31.1
          Twisted==19.7.0
          typing-extensions==3.7.4
          urllib3==1.25.6
          virtualenv==16.7.5
          visitor==0.1.3
          w3lib==1.21.0
          wcwidth==0.1.7
          webencodings==0.5.1
          websocket-client==0.56.0
          websockets==8.0.2
          Werkzeug==0.16.0
          Whoosh==2.7.4
          wrapt==1.11.2
          WTForms==2.2.1
          yarl==1.3.0
          zipp==0.6.0
          zope.interface==4.6.0

Pro-Linux
Pro-Linux @Facebook
Neue Nachrichten
Werbung