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

Function DetectIntWidthNoNulls

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

Source from the content-addressed store, hash-verified

81}
82
83static void DetectIntWidthNoNulls(
84 benchmark::State& state) { // NOLINT non-const reference
85 const auto values = GetIntSequence(0x12345, -0x1234);
86
87 while (state.KeepRunning()) {
88 auto result = DetectIntWidth(values.data(), static_cast<int64_t>(values.size()));
89 benchmark::DoNotOptimize(result);
90 }
91 state.SetBytesProcessed(state.iterations() * values.size() * sizeof(uint64_t));
92 state.SetItemsProcessed(state.iterations() * values.size());
93}
94
95static void DetectIntWidthNulls(benchmark::State& state) { // NOLINT non-const reference
96 const auto values = GetIntSequence(0x12345, -0x1234);

Callers

nothing calls this directly

Calls 4

GetIntSequenceFunction · 0.85
DetectIntWidthFunction · 0.85
dataMethod · 0.45
sizeMethod · 0.45

Tested by

no test coverage detected