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

Function ErrorSchemeException

cpp/src/arrow/type_benchmark.cc:404–419  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

402}
403
404static void ErrorSchemeException(benchmark::State& state) { // NOLINT non-const reference
405 auto integers = RandomIntegers();
406
407 for (auto _ : state) {
408 int64_t total = 0;
409 for (const auto v : integers) {
410 try {
411 total = Accumulate(total, ErrorAsException(v));
412 } catch (const std::exception&) {
413 }
414 }
415 benchmark::DoNotOptimize(total);
416 }
417
418 state.SetItemsProcessed(state.iterations() * integers.size());
419}
420
421static void ErrorSchemeExceptionNoInline(
422 benchmark::State& state) { // NOLINT non-const reference

Callers

nothing calls this directly

Calls 4

RandomIntegersFunction · 0.85
AccumulateFunction · 0.85
ErrorAsExceptionFunction · 0.85
sizeMethod · 0.45

Tested by

no test coverage detected