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

Function DetectUIntWidthNoNulls

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

Source from the content-addressed store, hash-verified

56}
57
58static void DetectUIntWidthNoNulls(
59 benchmark::State& state) { // NOLINT non-const reference
60 const auto values = GetUIntSequence(0x12345);
61
62 while (state.KeepRunning()) {
63 auto result = DetectUIntWidth(values.data(), static_cast<int64_t>(values.size()));
64 benchmark::DoNotOptimize(result);
65 }
66 state.SetBytesProcessed(state.iterations() * values.size() * sizeof(uint64_t));
67 state.SetItemsProcessed(state.iterations() * values.size());
68}
69
70static void DetectUIntWidthNulls(benchmark::State& state) { // NOLINT non-const reference
71 const auto values = GetUIntSequence(0x12345);

Callers

nothing calls this directly

Calls 4

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

Tested by

no test coverage detected