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

Function benchmarkEscapeIndex

json/string_test.go:32–38  ·  view source on GitHub ↗
(b *testing.B, s string, escapeHTML bool)

Source from the content-addressed store, hash-verified

30}
31
32func benchmarkEscapeIndex(b *testing.B, s string, escapeHTML bool) {
33 b.ResetTimer()
34 for range b.N {
35 escapeIndex(s, escapeHTML)
36 }
37 b.SetBytes(int64(len(s)))
38}

Calls 1

escapeIndexFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…