BenchmarkNew benchmarks the New function.
(b *testing.B)
| 178 | |
| 179 | // BenchmarkNew benchmarks the New function. |
| 180 | func BenchmarkNew(b *testing.B) { |
| 181 | for i := 0; i < b.N; i++ { |
| 182 | _ = matrix.New(100, 100, 0) // Change the arguments to match your use case |
| 183 | } |
| 184 | } |
| 185 | |
| 186 | // BenchmarkNewFromElements benchmarks the NewFromElements function. |
| 187 | func BenchmarkNewFromElements(b *testing.B) { |