| 4301 | */ |
| 4302 | |
| 4303 | static void construct_string(bm::State &state) { |
| 4304 | std::size_t length = static_cast<std::size_t>(state.range(0)); |
| 4305 | for (auto _ : state) bm::DoNotOptimize(std::string(length, 'x')); |
| 4306 | } |
| 4307 | |
| 4308 | // clang-format off |
| 4309 | BENCHMARK(construct_string) |
nothing calls this directly
no outgoing calls
no test coverage detected