-
-
Notifications
You must be signed in to change notification settings - Fork 3.2k
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
Dispatched nx-loopback tests performance degradation #7387
Comments
Maybe CI can run dispatchable tests in parallel ( Looking at an arbitrary recent PR, these are the slowest tests:
|
The expensive numpy results checks are effectively a type check, from what I can see. This could be another argument for using more type checking in the codebase instead (related: #3988) |
This is something I noticed while investigating #7354. The test suite when run with the
nx-loopback
backend is significantly slower than when run without loopback. I'd expect it to be a little slower due to the extra conversion overhead, but AIUI that should be limited to adding a single attribute to the graph which should not be very expensive. The total performance degradation is signficantly greater than what I'd expect from additional call/conversion overhead.For example, I've noticed that
test_omega
is an order of magnitude slower with loopback enabled:Without loopback
With loopback
I haven't done an exhaustive comparison to see which tests are most affected, but this is probably a good place to start looking as it's the worst offender (at least on my system).
The text was updated successfully, but these errors were encountered: