Description
In the dsolve benchmarks, only one benchmark is present for now. I am trying to add dsolve benchmarks but I am a little bit confused that how should I start?
So can someone help me?
sympy_benchmarks/benchmarks/dsolve.py
Line 19 in 7d0835a
For the dsolve, I am thinking to add benchmarks for all the hints one by one like for factorable
-
def _make_ode_factorable():
# eq = (f(x)**2-4)*(f(x).diff(x)+f(x))
params = (f, x)
return Eq((f(x)**2-4)*(f(x).diff(x)+f(x)), 0), params
class dsolve_factorable:
def setup(self):
self.ode, self.params = _make_ode_factorable()
def time_dsolve(self):
f, x = self.params
dsolve(self.ode, x)
So should I proceed like this?
If yes, then I have a few questions-
If I add a benchmark for, let's say factorable
method, so for that (like above), I will have to add at least one(maybe only one) equation to test. If I will add only one equation, then how we can say about slowing or speeding of a method based on only one equation.
And If we will add more than one equations to test, then maybe it can be too slow to benchmark the method.
If No, then how should I proceed?
CC @oscarbenjamin