MCPcopy
hub / github.com/danielgtaylor/huma / BenchmarkNewQuery

Function BenchmarkNewQuery

queryparam/queryparam_test.go:138–143  ·  view source on GitHub ↗
(b *testing.B)

Source from the content-addressed store, hash-verified

136var Result string
137
138func BenchmarkNewQuery(b *testing.B) {
139 b.ReportAllocs()
140 for i := 0; i < b.N; i++ {
141 Result = Get("foo=bar&baz=123&bool", "baz")
142 }
143}
144
145func BenchmarkStdQuery(b *testing.B) {
146 b.ReportAllocs()

Callers

nothing calls this directly

Calls 1

GetFunction · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…