Home / Function/ Benchmark_CORS_SubdomainMatch() — fiber Function Reference

Benchmark_CORS_SubdomainMatch() — fiber Function Reference

Architecture documentation for the Benchmark_CORS_SubdomainMatch() function in utils_test.go from the fiber codebase.

Entity Profile

Dependency Diagram

graph TD
  eaf3c439_62ee_c4b3_968a_9f9dd89d635a["Benchmark_CORS_SubdomainMatch()"]
  31acac19_a947_56a9_0afe_d7291e6d45a1["utils_test.go"]
  eaf3c439_62ee_c4b3_968a_9f9dd89d635a -->|defined in| 31acac19_a947_56a9_0afe_d7291e6d45a1
  style eaf3c439_62ee_c4b3_968a_9f9dd89d635a fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

middleware/cors/utils_test.go lines 117–130

func Benchmark_CORS_SubdomainMatch(b *testing.B) {
	s := subdomain{
		prefix: "www",
		suffix: "example.com",
	}

	o := "www.example.com"

	b.ReportAllocs()

	for b.Loop() {
		s.match(o)
	}
}

Domain

Subdomains

Frequently Asked Questions

What does Benchmark_CORS_SubdomainMatch() do?
Benchmark_CORS_SubdomainMatch() is a function in the fiber codebase, defined in middleware/cors/utils_test.go.
Where is Benchmark_CORS_SubdomainMatch() defined?
Benchmark_CORS_SubdomainMatch() is defined in middleware/cors/utils_test.go at line 117.

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free