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

Function ErrorSchemeBoolNoInline

cpp/src/arrow/type_benchmark.cc:302–318  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

300}
301
302static void ErrorSchemeBoolNoInline(
303 benchmark::State& state) { // NOLINT non-const reference
304 auto integers = RandomIntegers();
305
306 for (auto _ : state) {
307 int64_t total = 0;
308 for (const auto v : integers) {
309 auto pair = ErrorAsBoolNoInline(v);
310 if (!ARROW_PREDICT_FALSE(pair.first)) {
311 total = Accumulate(total, pair.second);
312 }
313 }
314 benchmark::DoNotOptimize(total);
315 }
316
317 state.SetItemsProcessed(state.iterations() * integers.size());
318}
319
320static void ErrorSchemeStatus(benchmark::State& state) { // NOLINT non-const reference
321 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