(b *testing.B)
| 41 | } |
| 42 | |
| 43 | func BenchmarkCheckEqualSmallMatrix(b *testing.B) { |
| 44 | m1 := matrix.New(10, 10, 0) // Create a 10x10 matrix with all zeros |
| 45 | m2 := matrix.New(10, 10, 0) // Create another 10x10 matrix with all zeros |
| 46 | |
| 47 | for i := 0; i < b.N; i++ { |
| 48 | _ = m1.CheckEqual(m2) |
| 49 | } |
| 50 | } |
| 51 | |
| 52 | func BenchmarkCheckEqualLargeMatrix(b *testing.B) { |
| 53 | size := 1000 // Choose an appropriate size for your large matrix |
nothing calls this directly
no test coverage detected