(b *testing.B)
| 294 | } |
| 295 | |
| 296 | func BenchmarkBaseGetBytes(b *testing.B) { |
| 297 | |
| 298 | indexes := []int32{1, 3, 100} |
| 299 | elts := []uint16{1, 3, 100} |
| 300 | |
| 301 | ab := &array.Base{} |
| 302 | err := ab.Init(indexes, elts) |
| 303 | if err != nil { |
| 304 | panic(err) |
| 305 | } |
| 306 | |
| 307 | b.ResetTimer() |
| 308 | |
| 309 | for i := 0; i < b.N; i++ { |
| 310 | ab.GetBytes(1, 2) |
| 311 | } |
| 312 | } |