MCPcopy Create free account
hub / github.com/ashvardanian/less_slow.cpp / construct_string

Function construct_string

less_slow.cpp:4303–4306  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

4301 */
4302
4303static 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
4309BENCHMARK(construct_string)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected