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

Function DetectIntWidthNulls

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

Source from the content-addressed store, hash-verified

93}
94
95static void DetectIntWidthNulls(benchmark::State& state) { // NOLINT non-const reference
96 const auto values = GetIntSequence(0x12345, -0x1234);
97 const auto valid_bytes = GetValidBytes(0x12345);
98
99 while (state.KeepRunning()) {
100 auto result = DetectIntWidth(values.data(), valid_bytes.data(),
101 static_cast<int64_t>(values.size()));
102 benchmark::DoNotOptimize(result);
103 }
104 state.SetBytesProcessed(state.iterations() * values.size() * sizeof(uint64_t));
105 state.SetItemsProcessed(state.iterations() * values.size());
106}
107
108static void CheckIndexBoundsInt32(
109 benchmark::State& state) { // NOLINT non-const reference

Callers

nothing calls this directly

Calls 5

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

Tested by

no test coverage detected