Home / Function/ Benchmark_Limiter_Custom_Store() — fiber Function Reference

Benchmark_Limiter_Custom_Store() — fiber Function Reference

Architecture documentation for the Benchmark_Limiter_Custom_Store() function in limiter_test.go from the fiber codebase.

Entity Profile

Dependency Diagram

graph TD
  031f641b_cd89_1ffb_908c_dccac5689bde["Benchmark_Limiter_Custom_Store()"]
  0509da96_221e_0d0d_fe2e_f2e2e3695b6f["limiter_test.go"]
  031f641b_cd89_1ffb_908c_dccac5689bde -->|defined in| 0509da96_221e_0d0d_fe2e_f2e2e3695b6f
  style 031f641b_cd89_1ffb_908c_dccac5689bde fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

middleware/limiter/limiter_test.go lines 1472–1494

func Benchmark_Limiter_Custom_Store(b *testing.B) {
	app := fiber.New()

	app.Use(New(Config{
		Max:        100,
		Expiration: 60 * time.Second,
		Storage:    memory.New(),
	}))

	app.Get("/", func(c fiber.Ctx) error {
		return c.SendString("Hello, World!")
	})

	h := app.Handler()

	fctx := &fasthttp.RequestCtx{}
	fctx.Request.Header.SetMethod(fiber.MethodGet)
	fctx.Request.SetRequestURI("/")

	for b.Loop() {
		h(fctx)
	}
}

Subdomains

Frequently Asked Questions

What does Benchmark_Limiter_Custom_Store() do?
Benchmark_Limiter_Custom_Store() is a function in the fiber codebase, defined in middleware/limiter/limiter_test.go.
Where is Benchmark_Limiter_Custom_Store() defined?
Benchmark_Limiter_Custom_Store() is defined in middleware/limiter/limiter_test.go at line 1472.

Analyze Your Own Codebase

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

Try Supermodel Free