(b *testing.B)
| 1255 | } |
| 1256 | |
| 1257 | func BenchmarkGenericArrayValueInt64s(b *testing.B) { |
| 1258 | rand.New(rand.NewSource(1)) |
| 1259 | x := make([]int64, 10) |
| 1260 | for i := 0; i < len(x); i++ { |
| 1261 | x[i] = rand.Int63() |
| 1262 | } |
| 1263 | a := GenericArray{x} |
| 1264 | |
| 1265 | for i := 0; i < b.N; i++ { |
| 1266 | a.Value() |
| 1267 | } |
| 1268 | } |
| 1269 | |
| 1270 | func BenchmarkGenericArrayValueByteSlices(b *testing.B) { |
| 1271 | x := make([][]byte, 10) |
nothing calls this directly
no test coverage detected
searching dependent graphs…