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

Function CheckIndexBoundsUInt32

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

Source from the content-addressed store, hash-verified

116}
117
118static void CheckIndexBoundsUInt32(
119 benchmark::State& state) { // NOLINT non-const reference
120 GenericItemsArgs args(state);
121 random::RandomArrayGenerator rand(kSeed);
122 auto arr = rand.UInt32(args.size, 0, 100000, args.null_proportion);
123 for (auto _ : state) {
124 ABORT_NOT_OK(CheckIndexBounds(*arr->data(), 100001));
125 }
126}
127
128BENCHMARK(DetectUIntWidthNoNulls);
129BENCHMARK(DetectUIntWidthNulls);

Callers

nothing calls this directly

Calls 3

CheckIndexBoundsFunction · 0.85
UInt32Method · 0.80
dataMethod · 0.45

Tested by

no test coverage detected