BenchmarkRows benchmarks the Rows method.
(b *testing.B)
| 227 | |
| 228 | // BenchmarkRows benchmarks the Rows method. |
| 229 | func BenchmarkRows(b *testing.B) { |
| 230 | // Create a sample matrix for benchmarking |
| 231 | rows := 100 |
| 232 | columns := 100 |
| 233 | matrix := matrix.New(rows, columns, 0) |
| 234 | |
| 235 | for i := 0; i < b.N; i++ { |
| 236 | _ = matrix.Rows() |
| 237 | } |
| 238 | } |
| 239 | |
| 240 | // BenchmarkColumns benchmarks the Columns method. |
| 241 | func BenchmarkColumns(b *testing.B) { |