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

Function ErrorSchemeBoolNoInline

cpp/src/arrow/type_benchmark.cc:316–332  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

314}
315
316static void ErrorSchemeBoolNoInline(
317 benchmark::State& state) { // NOLINT non-const reference
318 auto integers = RandomIntegers();
319
320 for (auto _ : state) {
321 int64_t total = 0;
322 for (const auto v : integers) {
323 auto pair = ErrorAsBoolNoInline(v);
324 if (!ARROW_PREDICT_FALSE(pair.first)) {
325 total = Accumulate(total, pair.second);
326 }
327 }
328 benchmark::DoNotOptimize(total);
329 }
330
331 state.SetItemsProcessed(state.iterations() * integers.size());
332}
333
334static void ErrorSchemeStatus(benchmark::State& state) { // NOLINT non-const reference
335 auto integers = RandomIntegers();

Callers

nothing calls this directly

Calls 3

RandomIntegersFunction · 0.85
AccumulateFunction · 0.85
sizeMethod · 0.45

Tested by

no test coverage detected