MCPcopy Create free account
hub / github.com/segmentio/encoding / BenchmarkHasFalsePrefix

Function BenchmarkHasFalsePrefix

json/parse_test.go:184–188  ·  view source on GitHub ↗
(b *testing.B)

Source from the content-addressed store, hash-verified

182}
183
184func BenchmarkHasFalsePrefix(b *testing.B) {
185 for range b.N {
186 benchmarkHasPrefixResult = hasFalsePrefix(benchmarkHasPrefixString)
187 }
188}
189
190func BenchmarkParseStringEscapeNone(b *testing.B) {
191 j := []byte(`"` + strings.Repeat(`a`, 1000) + `"`)

Callers

nothing calls this directly

Calls 1

hasFalsePrefixFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…