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

Function BenchmarkAppendToLower

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

Source from the content-addressed store, hash-verified

150}
151
152func BenchmarkAppendToLower(b *testing.B) {
153 a := []byte(nil)
154 s := []byte("someFieldWithALongName")
155
156 for range b.N {
157 a = appendToLower(a[:0], s)
158 }
159}
160
161var (
162 benchmarkHasPrefixString = []byte("some random string")

Callers

nothing calls this directly

Calls 1

appendToLowerFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…