-
Notifications
You must be signed in to change notification settings - Fork 79
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Benchmark with disabled GIL build and -Xgil=1 isn't enabling GIL #187
Comments
@corona10 I saw some mentions from you in the backlog on this topic |
Okay this should be fixed, since I am busy before PyCon US, if you want to submit the patch before, you can send it :) |
I'd suggest looking at: Line 270 in 555a168
IIRC,
|
Yeah today, I am working on. |
@corona10 there is no rush from me. I just wanted to report the issue |
@tonybaloney: Should this be closed as fixed? |
I think that we can close the issue. |
It seems that when you run
PYTHON_GIL=1 python benchmark.py
the benchmarked functions are being run with the GIL disabled and ignoring the flag.Benchmark Code
Results when running a CPython without
--disable-gil
:Running the benchmark with
PYTHON_GIL=0
:Running the benchmark with a no-gil build, but
PYTHON_GIL=1
uses all 4 CPU cores and gives the fastest result (faster thanPYTHON_GIL=0
) which is wrong--The text was updated successfully, but these errors were encountered: