Home / Function/ Benchmark_Bind_Body_Form_Map() — fiber Function Reference

Benchmark_Bind_Body_Form_Map() — fiber Function Reference

Architecture documentation for the Benchmark_Bind_Body_Form_Map() function in bind_test.go from the fiber codebase.

Entity Profile

Dependency Diagram

graph TD
  b1b2a244_ec26_df66_dc3a_858f250578bd["Benchmark_Bind_Body_Form_Map()"]
  55065b01_f5dc_4e53_5a74_5ecc7aca8f52["bind_test.go"]
  b1b2a244_ec26_df66_dc3a_858f250578bd -->|defined in| 55065b01_f5dc_4e53_5a74_5ecc7aca8f52
  style b1b2a244_ec26_df66_dc3a_858f250578bd fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

bind_test.go lines 1370–1389

func Benchmark_Bind_Body_Form_Map(b *testing.B) {
	var err error

	app := New()
	c := app.AcquireCtx(&fasthttp.RequestCtx{})

	body := []byte("name=john")
	c.Request().SetBody(body)
	c.Request().Header.SetContentType(MIMEApplicationForm)
	c.Request().Header.SetContentLength(len(body))
	d := make(map[string]string)

	b.ReportAllocs()

	for b.Loop() {
		err = c.Bind().Body(&d)
	}
	require.NoError(b, err)
	require.Equal(b, "john", d["name"])
}

Domain

Subdomains

Defined In

Frequently Asked Questions

What does Benchmark_Bind_Body_Form_Map() do?
Benchmark_Bind_Body_Form_Map() is a function in the fiber codebase, defined in bind_test.go.
Where is Benchmark_Bind_Body_Form_Map() defined?
Benchmark_Bind_Body_Form_Map() is defined in bind_test.go at line 1370.

Analyze Your Own Codebase

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

Try Supermodel Free