MCPcopy Create free account
hub / github.com/apache/arrow / std_copy

Function std_copy

cpp/src/arrow/util/range_benchmark.cc:55–63  ·  view source on GitHub ↗

For comparison: pure copy without any changes

Source from the content-addressed store, hash-verified

53
54// For comparison: pure copy without any changes
55void std_copy(benchmark::State& state) {
56 auto source = generate_junk(kSize);
57 std::vector<int> target(kSize);
58
59 for (auto _ : state) {
60 std::copy(source.begin(), source.end(), target.begin());
61 }
62 state.SetItemsProcessed(state.iterations() * kSize);
63}
64
65BENCHMARK(std_copy);
66

Callers

nothing calls this directly

Calls 3

generate_junkFunction · 0.85
beginMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected