Home / Function/ BenchmarkOneRouteHTML() — gin Function Reference

BenchmarkOneRouteHTML() — gin Function Reference

Architecture documentation for the BenchmarkOneRouteHTML() function in benchmarks_test.go from the gin codebase.

Entity Profile

Dependency Diagram

graph TD
  38d49b51_5b0c_332f_14ae_563f488cfaba["BenchmarkOneRouteHTML()"]
  027bc53e_0459_39d9_531f_d9717b8611dc["runRequest()"]
  38d49b51_5b0c_332f_14ae_563f488cfaba -->|calls| 027bc53e_0459_39d9_531f_d9717b8611dc
  style 38d49b51_5b0c_332f_14ae_563f488cfaba fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

benchmarks_test.go lines 62–72

func BenchmarkOneRouteHTML(B *testing.B) {
	router := New()
	t := template.Must(template.New("index").Parse(`
		<html><body><h1>{{.}}</h1></body></html>`))
	router.SetHTMLTemplate(t)

	router.GET("/html", func(c *Context) {
		c.HTML(http.StatusOK, "index", "hola")
	})
	runRequest(B, router, http.MethodGet, "/html")
}

Domain

Subdomains

Calls

Frequently Asked Questions

What does BenchmarkOneRouteHTML() do?
BenchmarkOneRouteHTML() is a function in the gin codebase.
What does BenchmarkOneRouteHTML() call?
BenchmarkOneRouteHTML() calls 1 function(s): runRequest.

Analyze Your Own Codebase

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

Try Supermodel Free