| 65 | BENCHMARK(InternedStringComparison)->Range(8, 512); |
| 66 | |
| 67 | static void CreateMapWithRegularStrings(benchmark::State& state) { |
| 68 | auto strings = makeRandomStrings(state.range(0)); |
| 69 | for (auto _ : state) { |
| 70 | FlatMap<std::string, bool> map; |
| 71 | map.reserve(strings.size()); |
| 72 | |
| 73 | for (const auto& str : strings) { |
| 74 | map[str] = true; |
| 75 | } |
| 76 | } |
| 77 | } |
| 78 | BENCHMARK(CreateMapWithRegularStrings)->Range(8, 512); |
| 79 | |
| 80 | static void CreateMapWithInternedStrings(benchmark::State& state) { |
nothing calls this directly
no test coverage detected