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

Function BenchmarkNewQueryMulti

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

Source from the content-addressed store, hash-verified

154var Values url.Values
155
156func BenchmarkNewQueryMulti(b *testing.B) {
157 b.ReportAllocs()
158 for i := 0; i < b.N; i++ {
159 Foo = Get("foo=bar&baz=123&num=5&float=1.0&bool", "foo")
160 Baz = Get("foo=bar&baz=123&num=5&float=1.0&bool", "baz")
161 Num = Get("foo=bar&baz=123&num=5&float=1.0&bool", "num")
162 Float = Get("foo=bar&baz=123&num=5&float=1.0&bool", "float")
163 Boolean = Get("foo=bar&baz=123&num=5&float=1.0&bool", "bool")
164 }
165}
166
167func BenchmarkStdQueryMulti(b *testing.B) {
168 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…