推荐学习书目
› Learn Python the Hard Way
Python Sites
› PyPI - Python Package Index
› http://diveintopython.org/toc/index.html
› Pocoo
值得关注的项目
› PyPy
› Celery
› Jinja2
› Read the Docs
› gevent
› pyenv
› virtualenv
› Stackless Python
› Beautiful Soup
› 结巴中文分词
› Green Unicorn
› Sentry
› Shovel
› Pyflakes
› pytest
Python 编程
› pep8 Checker
Styles
› PEP 8
› Google Python Style Guide
› Code Style from The Hitchhiker's Guide
est
V2EX  ›  Python

Windows Subsystem for Linux 上的 Python 比 Python .exe 快 50%

  •  
  •   est ·
    est · Jul 31, 2017 · 3495 views
    This topic created in 3385 days ago, the information mentioned may be changed or developed.
    8 replies  •  2017-08-01 18:30:38 +08:00
    myliyifei
    myliyifei
    Jul 31, 2017 via Android
    1
    为什么呢
    ipconfiger
    ipconfiger
    Jul 31, 2017
    2
    迷之 50%
    rosu
    rosu
    Jul 31, 2017 via Android
    3
    一使用 Subsystem,Android Studio 的模拟器就出错?😳
    tempdban
    tempdban
    Jul 31, 2017 via Android
    4
    应该是 c 库的差异吧
    wenzhoou
    wenzhoou
    Aug 1, 2017 via Android❤️1
    5
    只有一个样本不叫测试。也许是一部分 API 快,一部分 API 慢呢。
    flynaj
    flynaj
    Aug 1, 2017 via Android
    6
    Windows Subsystem for Linux 跟 linux 环境差别很大建议还是少折腾,50%应该是线程同步的问题
    lrxiao
    lrxiao
    Aug 1, 2017
    7
    昨天也看到这个...

    有人说是 MSVC 和 Gcc 的问题 有人说是源码编译更好, 很迷
    ysc3839
    ysc3839
    Aug 1, 2017
    8
    > python3.exe -c "import sys; print(sys.version)"
    3.6.2 (v3.6.2:5fd33b5, Jul 8 2017, 04:57:36) [MSC v.1900 64 bit (AMD64)]

    > python3.exe -m test.pystone 5000000
    Pystone(1.2) time for 5000000 passes = 38.1625
    This machine benchmarks at 131019 pystones/second


    $ python3 -c "import sys; print(sys.version)"
    3.5.2 (default, Nov 17 2016, 17:05:23)
    [GCC 5.4.0 20160609]

    $ python3 -m test.pystone 5000000
    Pystone(1.2) time for 5000000 passes = 36.8147
    This machine benchmarks at 135815 pystones/second

    确实有差距,但没那帖子那么夸张。
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Privacy   ·   Solana   ·   1903 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 67ms · UTC 15:24 · PVG 23:24 · LAX 07:24 · JFK 10:24
    ♥ Do have faith in what you're doing.