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

Function ErrorSchemeBool

cpp/src/arrow/type_benchmark.cc:285–300  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

283}
284
285static void ErrorSchemeBool(benchmark::State& state) { // NOLINT non-const reference
286 auto integers = RandomIntegers();
287
288 for (auto _ : state) {
289 int64_t total = 0;
290 for (const auto v : integers) {
291 auto pair = ErrorAsBool(v);
292 if (!ARROW_PREDICT_FALSE(pair.first)) {
293 total = Accumulate(total, pair.second);
294 }
295 }
296 benchmark::DoNotOptimize(total);
297 }
298
299 state.SetItemsProcessed(state.iterations() * integers.size());
300}
301
302static void ErrorSchemeBoolNoInline(
303 benchmark::State& state) { // NOLINT non-const reference

Callers

nothing calls this directly

Calls 4

RandomIntegersFunction · 0.85
ErrorAsBoolFunction · 0.85
AccumulateFunction · 0.85
sizeMethod · 0.45

Tested by

no test coverage detected