(b *testing.B)
| 89 | } |
| 90 | |
| 91 | func BenchmarkMatrixMultiply(b *testing.B) { |
| 92 | // Create sample matrices for benchmarking |
| 93 | rows := 10 |
| 94 | columns := 10 |
| 95 | m1 := matrix.New(rows, columns, 2) // Replace with appropriate values |
| 96 | m2 := matrix.New(rows, columns, 3) // Replace with appropriate values |
| 97 | |
| 98 | for i := 0; i < b.N; i++ { |
| 99 | _, _ = m1.Multiply(m2) |
| 100 | } |
| 101 | } |