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

Function ErrorSchemeNoError

cpp/src/arrow/type_benchmark.cc:270–282  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

268}
269
270static void ErrorSchemeNoError(benchmark::State& state) { // NOLINT non-const reference
271 auto integers = RandomIntegers();
272
273 for (auto _ : state) {
274 int64_t total = 0;
275 for (const auto v : integers) {
276 total = Accumulate(total, NoError(v));
277 }
278 benchmark::DoNotOptimize(total);
279 }
280
281 state.SetItemsProcessed(state.iterations() * integers.size());
282}
283
284static void ErrorSchemeNoErrorNoInline(
285 benchmark::State& state) { // NOLINT non-const reference

Callers

nothing calls this directly

Calls 4

RandomIntegersFunction · 0.85
AccumulateFunction · 0.85
NoErrorFunction · 0.85
sizeMethod · 0.45

Tested by

no test coverage detected