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

Function BenchmarkQueryParam_FastPath

query_fastpath_test.go:14–19  ·  view source on GitHub ↗

BenchmarkQueryParam_FastPath measures the single-key raw scan (current behavior).

(b *testing.B)

Source from the content-addressed store, hash-verified

12
13// BenchmarkQueryParam_FastPath measures the single-key raw scan (current behavior).
14func BenchmarkQueryParam_FastPath(b *testing.B) {
15 b.ReportAllocs()
16 for i := 0; i < b.N; i++ {
17 _ = getRawQueryParam(benchQuery, "name")
18 }
19}
20
21// BenchmarkQueryParam_Map measures the previous behavior: build the full url.Values then Get.
22func BenchmarkQueryParam_Map(b *testing.B) {

Callers

nothing calls this directly

Calls 1

getRawQueryParamFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…