bench

package
v0.0.1-alpha.140 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 26, 2025 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BuildDeepPath

func BuildDeepPath(n int) string

BuildDeepPath returns a path of the form /app/seg/seg/... with n segments.

func BuildManyRoutePatterns

func BuildManyRoutePatterns(n int) []string

BuildManyRoutePatterns constructs a slice of route patterns used in some benchmarks.

func NewRecorderRequest

func NewRecorderRequest(method, path string) (*httptest.ResponseRecorder, *http.Request)

NewRecorderRequest returns a recorder and request for the given method and path.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL