Home / Function/ BenchmarkUnmarshalredirectionMsg() — fiber Function Reference

BenchmarkUnmarshalredirectionMsg() — fiber Function Reference

Architecture documentation for the BenchmarkUnmarshalredirectionMsg() function in redirect_msgp_test.go from the fiber codebase.

Entity Profile

Dependency Diagram

graph TD
  8262fdbc_e03e_6325_b341_0ca7167182b8["BenchmarkUnmarshalredirectionMsg()"]
  677ddde0_a2ad_46ea_88ea_878d89b3a3b2["redirect_msgp_test.go"]
  8262fdbc_e03e_6325_b341_0ca7167182b8 -->|defined in| 677ddde0_a2ad_46ea_88ea_878d89b3a3b2
  style 8262fdbc_e03e_6325_b341_0ca7167182b8 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

redirect_msgp_test.go lines 56–68

func BenchmarkUnmarshalredirectionMsg(b *testing.B) {
	v := redirectionMsg{}
	bts, _ := v.MarshalMsg(nil)
	b.ReportAllocs()
	b.SetBytes(int64(len(bts)))
	b.ResetTimer()
	for i := 0; i < b.N; i++ {
		_, err := v.UnmarshalMsg(bts)
		if err != nil {
			b.Fatal(err)
		}
	}
}

Domain

Subdomains

Frequently Asked Questions

What does BenchmarkUnmarshalredirectionMsg() do?
BenchmarkUnmarshalredirectionMsg() is a function in the fiber codebase, defined in redirect_msgp_test.go.
Where is BenchmarkUnmarshalredirectionMsg() defined?
BenchmarkUnmarshalredirectionMsg() is defined in redirect_msgp_test.go at line 56.

Analyze Your Own Codebase

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

Try Supermodel Free