Home / Function/ BenchmarkAppendMsgredirectionMsg() — fiber Function Reference

BenchmarkAppendMsgredirectionMsg() — fiber Function Reference

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

Entity Profile

Dependency Diagram

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

Relationship Graph

Source Code

redirect_msgp_test.go lines 44–54

func BenchmarkAppendMsgredirectionMsg(b *testing.B) {
	v := redirectionMsg{}
	bts := make([]byte, 0, v.Msgsize())
	bts, _ = v.MarshalMsg(bts[0:0])
	b.SetBytes(int64(len(bts)))
	b.ReportAllocs()
	b.ResetTimer()
	for i := 0; i < b.N; i++ {
		bts, _ = v.MarshalMsg(bts[0:0])
	}
}

Domain

Subdomains

Frequently Asked Questions

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

Analyze Your Own Codebase

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

Try Supermodel Free