BenchmarkQueryParam_FastPath measures the single-key raw scan (current behavior).
(b *testing.B)
| 12 | |
| 13 | // BenchmarkQueryParam_FastPath measures the single-key raw scan (current behavior). |
| 14 | func 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. |
| 22 | func BenchmarkQueryParam_Map(b *testing.B) { |
nothing calls this directly
no test coverage detected
searching dependent graphs…