MCPcopy Index your code
hub / github.com/segmentio/encoding / BenchmarkParseString

Function BenchmarkParseString

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

Source from the content-addressed store, hash-verified

133}
134
135func BenchmarkParseString(b *testing.B) {
136 s := []byte(`"__segment_internal"`)
137
138 d := decoder{}
139 for range b.N {
140 d.parseString(s)
141 }
142}
143
144func BenchmarkToLower(b *testing.B) {
145 s := []byte("someFieldWithALongName")

Callers

nothing calls this directly

Calls 1

parseStringMethod · 0.95

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…