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

Function BenchmarkGenericArrayValueInt64s

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

Source from the content-addressed store, hash-verified

1255}
1256
1257func 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
1270func BenchmarkGenericArrayValueByteSlices(b *testing.B) {
1271 x := make([][]byte, 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…