MCPcopy
hub / github.com/labstack/echo / BenchmarkValueBinder_BindInt64_single

Function BenchmarkValueBinder_BindInt64_single

binder_test.go:2926–2939  ·  view source on GitHub ↗
(b *testing.B)

Source from the content-addressed store, hash-verified

2924}
2925
2926func BenchmarkValueBinder_BindInt64_single(b *testing.B) {
2927 c := createTestContext("/search?param=1&param=100", nil, nil)
2928
2929 b.ReportAllocs()
2930 b.ResetTimer()
2931 type Opts struct {
2932 Param int64
2933 }
2934 binder := QueryParamsBinder(c)
2935 for i := 0; i < b.N; i++ {
2936 var dest Opts
2937 _ = binder.Int64("param", &dest.Param).BindError()
2938 }
2939}
2940
2941func BenchmarkRawFunc_Int64_single(b *testing.B) {
2942 c := createTestContext("/search?param=1&param=100", nil, nil)

Callers

nothing calls this directly

Calls 4

createTestContextFunction · 0.85
QueryParamsBinderFunction · 0.85
BindErrorMethod · 0.80
Int64Method · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…