-
-
Notifications
You must be signed in to change notification settings - Fork 19.3k
CLN: ASV Gil benchmark #18675
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
CLN: ASV Gil benchmark #18675
Conversation
|
Is it a bit strange that you see such a slowdown with multiple threads ? |
f594648 to
a83286d
Compare
Codecov Report
@@ Coverage Diff @@
## master #18675 +/- ##
==========================================
- Coverage 91.59% 91.57% -0.03%
==========================================
Files 153 153
Lines 51263 51212 -51
==========================================
- Hits 46956 46899 -57
- Misses 4307 4313 +6
Continue to review full report at Codecov.
|
Codecov Report
@@ Coverage Diff @@
## master #18675 +/- ##
==========================================
- Coverage 91.6% 91.6% -0.01%
==========================================
Files 153 153
Lines 51273 51306 +33
==========================================
+ Hits 46970 46999 +29
- Misses 4303 4307 +4
Continue to review full report at Codecov.
|
|
@jorisvandenbossche This benchmark makes heavy use of the Here's an example analysis of that point: https://medium.com/practo-engineering/threading-vs-multiprocessing-in-python-7b57f224eadb |
As far as I understand, threads don't help for that due to the GIL, but here we are explicitly benchmarking the GIL-freeing of those groupby et al methods. Trying out the example interactively also does give a speedup, so I was mainly wondering why we don't see this in the asv benchmarks: |
|
Okay thanks for the explaination. The ( |
a83286d to
c38b168
Compare
|
There is still one linting issue: |
|
Thanks! |
So I'll roll back my changes in the |
Yes, that is maybe the easiest, then you don't need to worry about the merge conflicts |
Adding missing
setupimport toattrs_caching.pyNow lint benchmark files that start with g and h
Utilized
paramsforgil.pybenchmarks, flake8 and remove start imports