MCPcopy Index your code
hub / github.com/labstack/echo / BenchmarkBind_Query

Function BenchmarkBind_Query

perf_bench_test.go:132–146  ·  view source on GitHub ↗
(b *testing.B)

Source from the content-addressed store, hash-verified

130}
131
132func BenchmarkBind_Query(b *testing.B) {
133 e := New()
134 e.GET("/", func(c *Context) error {
135 var t bindTarget
136 return c.Bind(&t)
137 })
138 b.ReportAllocs()
139 b.ResetTimer()
140 w := &nopResponseWriter{}
141 req := httptest.NewRequest(http.MethodGet, "/?id=1&name=Jon&email=jon@x.io&age=24&active=true", nil)
142 for i := 0; i < b.N; i++ {
143 w.h = nil
144 e.ServeHTTP(w, req)
145 }
146}

Callers

nothing calls this directly

Calls 4

NewFunction · 0.85
ServeHTTPMethod · 0.80
BindMethod · 0.65
GETMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…