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

Function ErrorSchemeExceptionNoInline

cpp/src/arrow/type_benchmark.cc:421–437  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

419}
420
421static void ErrorSchemeExceptionNoInline(
422 benchmark::State& state) { // NOLINT non-const reference
423 auto integers = RandomIntegers();
424
425 for (auto _ : state) {
426 int64_t total = 0;
427 for (const auto v : integers) {
428 try {
429 total = Accumulate(total, ErrorAsExceptionNoInline(v));
430 } catch (const std::exception&) {
431 }
432 }
433 benchmark::DoNotOptimize(total);
434 }
435
436 state.SetItemsProcessed(state.iterations() * integers.size());
437}
438
439// ----------------------------------------------------------------------
440// FieldPath::Get benchmarks

Callers

nothing calls this directly

Calls 4

RandomIntegersFunction · 0.85
AccumulateFunction · 0.85
ErrorAsExceptionNoInlineFunction · 0.85
sizeMethod · 0.45

Tested by

no test coverage detected