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

Function ErrorSchemeExceptionNoInline

cpp/src/arrow/type_benchmark.cc:407–423  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

405}
406
407static void ErrorSchemeExceptionNoInline(
408 benchmark::State& state) { // NOLINT non-const reference
409 auto integers = RandomIntegers();
410
411 for (auto _ : state) {
412 int64_t total = 0;
413 for (const auto v : integers) {
414 try {
415 total = Accumulate(total, ErrorAsExceptionNoInline(v));
416 } catch (const std::exception&) {
417 }
418 }
419 benchmark::DoNotOptimize(total);
420 }
421
422 state.SetItemsProcessed(state.iterations() * integers.size());
423}
424
425// ----------------------------------------------------------------------
426// 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