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

Function ErrorSchemeNoErrorNoInline

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

Source from the content-addressed store, hash-verified

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