Home / Function/ Benchmark_Client_Request() — fiber Function Reference

Benchmark_Client_Request() — fiber Function Reference

Architecture documentation for the Benchmark_Client_Request() function in client_test.go from the fiber codebase.

Entity Profile

Dependency Diagram

graph TD
  c6545afd_9ac2_a80f_ecc8_fa1eab420e22["Benchmark_Client_Request()"]
  5d11d0f7_2b3b_7bf3_3b1d_76d79d6872a2["client_test.go"]
  c6545afd_9ac2_a80f_ecc8_fa1eab420e22 -->|defined in| 5d11d0f7_2b3b_7bf3_3b1d_76d79d6872a2
  style c6545afd_9ac2_a80f_ecc8_fa1eab420e22 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

client/client_test.go lines 2258–2277

func Benchmark_Client_Request(b *testing.B) {
	app, dial, start := createHelperServer(b)
	app.Get("/", func(c fiber.Ctx) error {
		return c.SendString("hello world")
	})

	go start()

	client := New().SetDial(dial)

	b.ReportAllocs()

	var err error
	var resp *Response
	for b.Loop() {
		resp, err = client.Get("http://example.com")
		resp.Close()
	}
	require.NoError(b, err)
}

Domain

Subdomains

Frequently Asked Questions

What does Benchmark_Client_Request() do?
Benchmark_Client_Request() is a function in the fiber codebase, defined in client/client_test.go.
Where is Benchmark_Client_Request() defined?
Benchmark_Client_Request() is defined in client/client_test.go at line 2258.

Analyze Your Own Codebase

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

Try Supermodel Free