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

Function ErrorSchemeException

cpp/src/arrow/type_benchmark.cc:390–405  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

388}
389
390static void ErrorSchemeException(benchmark::State& state) { // NOLINT non-const reference
391 auto integers = RandomIntegers();
392
393 for (auto _ : state) {
394 int64_t total = 0;
395 for (const auto v : integers) {
396 try {
397 total = Accumulate(total, ErrorAsException(v));
398 } catch (const std::exception&) {
399 }
400 }
401 benchmark::DoNotOptimize(total);
402 }
403
404 state.SetItemsProcessed(state.iterations() * integers.size());
405}
406
407static void ErrorSchemeExceptionNoInline(
408 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