From 7338b075972255b4df0b0dedabba10d406e8680c Mon Sep 17 00:00:00 2001 From: Oscar Benjamin Date: Tue, 31 Mar 2020 02:41:25 +0100 Subject: [PATCH] Make polys/solve benchmarks smaller --- benchmarks/polys.py | 2 +- benchmarks/solve.py | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/benchmarks/polys.py b/benchmarks/polys.py index 2e84d76..5c90149 100644 --- a/benchmarks/polys.py +++ b/benchmarks/polys.py @@ -3,7 +3,7 @@ class TimePolyManyGens: """Time using a Poly with many generators""" - params = [1, 10, 100, 500, 1000] + params = [1, 10, 100, 500] def setup(self, n): self.xs = sympy.symbols('x:{}'.format(n)) diff --git a/benchmarks/solve.py b/benchmarks/solve.py index 33a4b11..591e5cb 100644 --- a/benchmarks/solve.py +++ b/benchmarks/solve.py @@ -84,7 +84,7 @@ class TimeRationalSystem: syms = sympy.symbols('x:20') - params = [1, 3, 5, 10, 20] + params = [1, 3, 5, 10] def setup(self, n): Mn = self.M[:n, :n+1] @@ -101,7 +101,6 @@ def time_linsolve(self, n): class TimeRationalSystemSymbol(TimeRationalSystem): """Solve a dense system of linear equations with a symbol in coefficients""" - def setup(self, n): super().setup(n) y = sympy.Symbol('y')