| 5 | #include <util/stream/str.h> |
| 6 | |
| 7 | void FindHeaderFirstMatch(benchmark::State& state) { |
| 8 | THttpHeaders headers; |
| 9 | headers.AddHeader("Host", "example.com"); |
| 10 | Y_ENSURE(headers.FindHeader("Host")); |
| 11 | for (auto _ : state) { |
| 12 | auto header = headers.FindHeader("Host"); |
| 13 | benchmark::DoNotOptimize(header); |
| 14 | } |
| 15 | } |
| 16 | |
| 17 | void FindHeaderNoMatchSameSize(benchmark::State& state) { |
| 18 | THttpHeaders headers; |
nothing calls this directly
no test coverage detected