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

Function ArrayRangeEqualsStruct

cpp/src/arrow/compare_benchmark.cc:113–126  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

111}
112
113static void ArrayRangeEqualsStruct(benchmark::State& state) {
114 // struct<int32, utf8>
115 RegressionArgs args(state, /*size_is_bytes=*/false);
116
117 auto rng = random::RandomArrayGenerator(kSeed);
118 auto values1 = rng.Int32(args.size, 0, 100, args.null_proportion);
119 auto values2 =
120 rng.String(args.size, /*min_length=*/0, /*max_length=*/15, args.null_proportion);
121 auto null_bitmap = rng.NullBitmap(args.size, args.null_proportion);
122 auto array = *StructArray::Make({values1, values2},
123 std::vector<std::string>{"ints", "strs"}, null_bitmap);
124
125 BenchmarkArrayRangeEquals(array, state);
126}
127
128static void ArrayRangeEqualsSparseUnion(benchmark::State& state) {
129 // sparse_union<int32, utf8>

Callers

nothing calls this directly

Calls 5

Int32Method · 0.80
NullBitmapMethod · 0.80
MakeFunction · 0.70
StringMethod · 0.45

Tested by

no test coverage detected