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

Function DetectUIntWidthNulls

cpp/src/arrow/util/int_util_benchmark.cc:70–81  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

68}
69
70static void DetectUIntWidthNulls(benchmark::State& state) { // NOLINT non-const reference
71 const auto values = GetUIntSequence(0x12345);
72 const auto valid_bytes = GetValidBytes(0x12345);
73
74 while (state.KeepRunning()) {
75 auto result = DetectUIntWidth(values.data(), valid_bytes.data(),
76 static_cast<int64_t>(values.size()));
77 benchmark::DoNotOptimize(result);
78 }
79 state.SetBytesProcessed(state.iterations() * values.size() * sizeof(uint64_t));
80 state.SetItemsProcessed(state.iterations() * values.size());
81}
82
83static void DetectIntWidthNoNulls(
84 benchmark::State& state) { // NOLINT non-const reference

Callers

nothing calls this directly

Calls 5

GetUIntSequenceFunction · 0.85
GetValidBytesFunction · 0.85
DetectUIntWidthFunction · 0.85
dataMethod · 0.45
sizeMethod · 0.45

Tested by

no test coverage detected