Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
Parametrize sum performance test with multiple sizes
Replaces the skipped performance test with a parameterized test for matrix sizes 500, 1000, and 2000 to allow benchmarking across different input sizes.
  • Loading branch information
Zeroto521 committed Oct 21, 2025
commit 0b7cd2928d88e045372e1c47b466cbc145475cb3
6 changes: 3 additions & 3 deletions tests/test_matrix_variable.py
Original file line number Diff line number Diff line change
Expand Up @@ -216,9 +216,9 @@ def test_matrix_sum_argument():
assert (m.getVal(x) == np.full((2, 3), 4)).all().all()
assert (m.getVal(y) == np.full((2, 4), 3)).all().all()

@pytest.mark.skip(reason="Performance test")
def test_sum_performance():
n = 1000

@pytest.mark.parametrize("n", [500, 1000, 2000])
def test_sum_performance(n):
model = Model()
x = model.addMatrixVar((n, n))

Expand Down