MCPcopy Index your code
hub / github.com/aarondl/sqlboiler / BenchmarkGenericArrayValueByteSlices

Function BenchmarkGenericArrayValueByteSlices

types/array_test.go:1270–1280  ·  view source on GitHub ↗
(b *testing.B)

Source from the content-addressed store, hash-verified

1268}
1269
1270func BenchmarkGenericArrayValueByteSlices(b *testing.B) {
1271 x := make([][]byte, 10)
1272 for i := 0; i < len(x); i++ {
1273 x[i] = bytes.Repeat([]byte(`abc"def\ghi`), 5)
1274 }
1275 a := GenericArray{x}
1276
1277 for i := 0; i < b.N; i++ {
1278 a.Value()
1279 }
1280}
1281
1282func BenchmarkGenericArrayValueStrings(b *testing.B) {
1283 x := make([]string, 10)

Callers

nothing calls this directly

Calls 1

ValueMethod · 0.95

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…