Skip to content

Commit

Permalink
Make solve benchmarks smaller
Browse files Browse the repository at this point in the history
  • Loading branch information
oscarbenjamin committed Mar 31, 2020
1 parent 3be8445 commit 540d83c
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions benchmarks/solve.py
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,8 @@ def time_linsolve(self, n):
class TimeRationalSystemSymbol(TimeRationalSystem):
"""Solve a dense system of linear equations with a symbol in coefficients"""

params = [1, 3, 5]

def setup(self, n):
super().setup(n)
y = sympy.Symbol('y')
Expand All @@ -119,7 +121,7 @@ def mk_eqs(self, n):
eqs.extend([xi + yi, xi - yi + 1])
return eqs, syms

params = [10, 20, 50, 100]
params = [10, 20, 30]

def setup(self, n):
self.eqs, self.syms = self.mk_eqs(n)
Expand Down Expand Up @@ -155,7 +157,7 @@ def make_polysys(self, n):
syms = xs + ys
return eqs, syms

params = [1, 2, 3, 4, 5]
params = [1, 2, 3]

def setup(self, n):
self.eqs, self.syms = self.make_polysys(n)
Expand Down

0 comments on commit 540d83c

Please sign in to comment.