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

Function for_loop

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

Baseline

Source from the content-addressed store, hash-verified

40
41// Baseline
42void for_loop(benchmark::State& state) {
43 auto source = generate_junk(kSize);
44 std::vector<int> target(kSize);
45
46 for (auto _ : state) {
47 for (int64_t index = 0; index < kSize; ++index) target[index] = source[index] + 1;
48 }
49 state.SetItemsProcessed(state.iterations() * kSize);
50}
51
52BENCHMARK(for_loop);
53

Callers

nothing calls this directly

Calls 1

generate_junkFunction · 0.85

Tested by

no test coverage detected