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

Function BenchmarkDefaultBinder_BindInt64_single

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

Source from the content-addressed store, hash-verified

2909}
2910
2911func BenchmarkDefaultBinder_BindInt64_single(b *testing.B) {
2912 type Opts struct {
2913 Param int64 `query:"param"`
2914 }
2915 c := createTestContext("/search?param=1&param=100", nil, nil)
2916
2917 b.ReportAllocs()
2918 b.ResetTimer()
2919 binder := new(DefaultBinder)
2920 for i := 0; i < b.N; i++ {
2921 var dest Opts
2922 _ = binder.Bind(c, &dest)
2923 }
2924}
2925
2926func BenchmarkValueBinder_BindInt64_single(b *testing.B) {
2927 c := createTestContext("/search?param=1&param=100", nil, nil)

Callers

nothing calls this directly

Calls 2

createTestContextFunction · 0.85
BindMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…