MCPcopy
hub / github.com/tidwall/gjson / BenchmarkValid

Function BenchmarkValid

gjson_test.go:1360–1364  ·  view source on GitHub ↗
(b *testing.B)

Source from the content-addressed store, hash-verified

1358}
1359
1360func BenchmarkValid(b *testing.B) {
1361 for i := 0; i < b.N; i++ {
1362 Valid(complicatedJSON)
1363 }
1364}
1365
1366func BenchmarkValidBytes(b *testing.B) {
1367 complicatedJSON := []byte(complicatedJSON)

Callers

nothing calls this directly

Calls 1

ValidFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…