[issue37118] Why is GIL on 2.7 so much faster than 3.7

gary*atlanta report at bugs.python.org
Fri May 31 17:17:59 EDT 2019


gary*atlanta <gary.aviv at gmail.com> added the comment:

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

----------
type:  -> performance

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue37118>
_______________________________________


More information about the Python-bugs-list mailing list