MCPcopy Create free account
hub / github.com/gobwas/httphead / BenchmarkScannerReadString

Function BenchmarkScannerReadString

lexer_test.go:135–144  ·  view source on GitHub ↗
(b *testing.B)

Source from the content-addressed store, hash-verified

133}
134
135func BenchmarkScannerReadString(b *testing.B) {
136 for _, bench := range quotedStringCases {
137 b.Run(bench.label, func(b *testing.B) {
138 for i := 0; i < b.N; i++ {
139 l := &Scanner{data: []byte(bench.in)}
140 _ = l.fetchQuotedString()
141 }
142 })
143 }
144}
145
146func BenchmarkScannerReadComment(b *testing.B) {
147 for _, bench := range commentCases {

Callers

nothing calls this directly

Calls 1

fetchQuotedStringMethod · 0.95

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…