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

Function ErrorSchemeNoErrorNoInline

cpp/src/arrow/type_benchmark.cc:284–297  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

282}
283
284static void ErrorSchemeNoErrorNoInline(
285 benchmark::State& state) { // NOLINT non-const reference
286 auto integers = RandomIntegers();
287
288 for (auto _ : state) {
289 int64_t total = 0;
290 for (const auto v : integers) {
291 total = Accumulate(total, NoErrorNoInline(v));
292 }
293 benchmark::DoNotOptimize(total);
294 }
295
296 state.SetItemsProcessed(state.iterations() * integers.size());
297}
298
299static void ErrorSchemeBool(benchmark::State& state) { // NOLINT non-const reference
300 auto integers = RandomIntegers();

Callers

nothing calls this directly

Calls 4

RandomIntegersFunction · 0.85
AccumulateFunction · 0.85
NoErrorNoInlineFunction · 0.85
sizeMethod · 0.45

Tested by

no test coverage detected