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

Function Benchmark_Domain_Match

domain_test.go:1499–1507  ·  view source on GitHub ↗
(b *testing.B)

Source from the content-addressed store, hash-verified

1497}
1498
1499func Benchmark_Domain_Match(b *testing.B) {
1500 m := parseDomainPattern(":tenant.api.example.com")
1501 b.ResetTimer()
1502 b.ReportAllocs()
1503
1504 for b.Loop() {
1505 m.match("acme.api.example.com")
1506 }
1507}
1508
1509func Benchmark_Domain_Route(b *testing.B) {
1510 app := New()

Callers

nothing calls this directly

Calls 2

parseDomainPatternFunction · 0.85
matchMethod · 0.45

Tested by

no test coverage detected