This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: Why is GIL on 2.7 so much faster than 3.7
Type: performance Stage: resolved
Components: Interpreter Core Versions:
process
Status: closed Resolution: not a bug
Dependencies: Superseder:
Assigned To: Nosy List: gary*atlanta, zach.ware
Priority: normal Keywords:

Created on 2019-05-31 20:49 by gary*atlanta, last changed 2022-04-11 14:59 by admin. This issue is now closed.

Messages (2)
msg344122 - (view) Author: Zachary Ware (zach.ware) * (Python committer) Date: 2019-05-31 21:05
This is a bug tracker, not a forum for questions.  Please try a more appropriate venue for your question, like python-list@python.org or StackOverflow.  You're going to need to provide some actual evidence rather than just a provocative assertion, though.
msg344124 - (view) Author: (gary*atlanta) Date: 2019-05-31 21:17
tested this loop:

        for (i=0; i<loops; i++)
        {
            Py_BEGIN_ALLOW_THREADS
            Py_END_ALLOW_THREADS
        } 

With loops set to 10,000,000 on Centos 7, i7-2600

Python 2.7
real    0m0.199s
user    0m0.109s
sys     0m0.011s

Python 3.7
real    0m0.912s
user    0m0.791s
sys     0m0.009s
History
Date User Action Args
2022-04-11 14:59:16adminsetgithub: 81299
2019-05-31 21:17:59gary*atlantasettype: performance
messages: + msg344124
2019-05-31 21:05:32zach.waresetstatus: open -> closed

versions: - Python 3.7
nosy: + zach.ware

messages: + msg344122
resolution: not a bug
stage: resolved
2019-05-31 20:49:02gary*atlantacreate