MCPcopy
hub / github.com/gofiber/fiber / Benchmark_Match

Function Benchmark_Match

internal/schemehost/schemehost_test.go:140–147  ·  view source on GitHub ↗
(b *testing.B)

Source from the content-addressed store, hash-verified

138}
139
140func Benchmark_Match(b *testing.B) {
141 b.ReportAllocs()
142 var ok bool
143 for b.Loop() {
144 ok = Match("https", "example.com", "https", "example.com")
145 }
146 _ = ok
147}
148
149// FuzzNormalizeSchemeHost asserts the fast path stays byte-for-byte equivalent
150// to the url.Parse reference for arbitrary host strings.

Callers

nothing calls this directly

Calls 1

MatchFunction · 0.85

Tested by

no test coverage detected