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

Function BenchmarkGenericArrayValueFloat64s

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

Source from the content-addressed store, hash-verified

1242}
1243
1244func BenchmarkGenericArrayValueFloat64s(b *testing.B) {
1245 rand.New(rand.NewSource(1))
1246 x := make([]float64, 10)
1247 for i := 0; i < len(x); i++ {
1248 x[i] = rand.NormFloat64()
1249 }
1250 a := GenericArray{x}
1251
1252 for i := 0; i < b.N; i++ {
1253 a.Value()
1254 }
1255}
1256
1257func BenchmarkGenericArrayValueInt64s(b *testing.B) {
1258 rand.New(rand.NewSource(1))

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…