Home / Function/ BenchmarkEncoderedirectionMsg() — fiber Function Reference

BenchmarkEncoderedirectionMsg() — fiber Function Reference

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

Entity Profile

Dependency Diagram

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

Relationship Graph

Source Code

redirect_msgp_test.go lines 94–106

func BenchmarkEncoderedirectionMsg(b *testing.B) {
	v := redirectionMsg{}
	var buf bytes.Buffer
	msgp.Encode(&buf, &v)
	b.SetBytes(int64(buf.Len()))
	en := msgp.NewWriter(msgp.Nowhere)
	b.ReportAllocs()
	b.ResetTimer()
	for i := 0; i < b.N; i++ {
		v.EncodeMsg(en)
	}
	en.Flush()
}

Domain

Subdomains

Frequently Asked Questions

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

Analyze Your Own Codebase

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

Try Supermodel Free