(b *testing.B)
| 138 | } |
| 139 | |
| 140 | func Benchmark_Match(b *testing.B) { |
| 141 | b.ReportAllocs() |
| 142 | var ok bool |
| 143 | for b.Loop() { |
| 144 | ok = Match("https", "example.com", "https", "example.com") |
| 145 | } |
| 146 | _ = ok |
| 147 | } |
| 148 | |
| 149 | // FuzzNormalizeSchemeHost asserts the fast path stays byte-for-byte equivalent |
| 150 | // to the url.Parse reference for arbitrary host strings. |