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

Function BenchmarkScannerReadComment

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

Source from the content-addressed store, hash-verified

144}
145
146func BenchmarkScannerReadComment(b *testing.B) {
147 for _, bench := range commentCases {
148 b.Run(bench.label, func(b *testing.B) {
149 for i := 0; i < b.N; i++ {
150 l := &Scanner{data: []byte(bench.in)}
151 _ = l.fetchComment()
152 }
153 })
154 }
155}

Callers

nothing calls this directly

Calls 1

fetchCommentMethod · 0.95

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…