-
-
Notifications
You must be signed in to change notification settings - Fork 33
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
Add benchmarks for subresultants PRS method #94
Conversation
The benchmarks for |
This is the current output looks like
|
I think that this looks good but I think that we should reduce the total number of benchmarks that are reported for both PREM and subresultants. You can see what it currently looks like when benchmark results are reported to a PR here: This PR would double that. Now that we can see these examples and how the benchmarks compare the question is: which of these different benchmarks is potentially reporting something interesting? For GCD probably all cases are interesting (they were designed for GCD) but for PREM it does not seem that e.g. the |
As an aside the timings here comparing The reason for this is that many SymPy operations (with |
|
Should we remove the |
No, we can leave it there. We just need to recognise that those benchmarks are not always representative of any actual improvement or regression in performance. |
I would like to keep something for PREM because perhaps in future it would not be used by subresultants for example. I just don't think we need so many benchmarks for PREM. Also if the different cases are not particularly interesting for revealing different aspects of the performance of subresultants then we don't need so many cases for that either. |
We should keep |
Why in particular those benchmarks? Or is that just a random choice? Do Are the other cases less relevant than those two? |
For |
We can also reduce the values of |
Okay, well that seems like a good reason. Maybe some docstrings should be added to the benchmark cases explaining why they are chosen. Also it would be good to add docstrings to the examples types like I put some docstrings in the suggested code at #89 (comment) as an illustration of how that might look. Perhaps it would just be good to pick a particular |
@oscarbenjamin Please have a look! |
Okay, looks good. |
thanks! |
This PR adds the benchmarks for the subresultants PRS method.
Related Issue:
#88
See sympy/sympy#25371