BenchmarkColumns benchmarks the Columns method.
(b *testing.B)
| 239 | |
| 240 | // BenchmarkColumns benchmarks the Columns method. |
| 241 | func BenchmarkColumns(b *testing.B) { |
| 242 | // Create a sample matrix for benchmarking |
| 243 | rows := 100 |
| 244 | columns := 100 |
| 245 | matrix := matrix.New(rows, columns, 0) |
| 246 | |
| 247 | for i := 0; i < b.N; i++ { |
| 248 | _ = matrix.Columns() |
| 249 | } |
| 250 | } |