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

Function BenchmarkGenericArrayValueBools

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

Source from the content-addressed store, hash-verified

1229}
1230
1231func BenchmarkGenericArrayValueBools(b *testing.B) {
1232 rand.New(rand.NewSource(1))
1233 x := make([]bool, 10)
1234 for i := 0; i < len(x); i++ {
1235 x[i] = rand.Intn(2) == 0
1236 }
1237 a := GenericArray{x}
1238
1239 for i := 0; i < b.N; i++ {
1240 a.Value()
1241 }
1242}
1243
1244func BenchmarkGenericArrayValueFloat64s(b *testing.B) {
1245 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…