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

Function ArrayRangeEqualsListOfInt32

cpp/src/arrow/compare_benchmark.cc:101–111  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

99}
100
101static void ArrayRangeEqualsListOfInt32(benchmark::State& state) {
102 RegressionArgs args(state, /*size_is_bytes=*/false);
103
104 auto rng = random::RandomArrayGenerator(kSeed);
105 auto values = rng.Int32(args.size * 10, 0, 100, args.null_proportion);
106 // Force empty list null entries, since it is overwhelmingly the common case.
107 auto array = rng.List(*values, /*size=*/args.size, args.null_proportion,
108 /*force_empty_nulls=*/true);
109
110 BenchmarkArrayRangeEquals(array, state);
111}
112
113static void ArrayRangeEqualsStruct(benchmark::State& state) {
114 // struct<int32, utf8>

Callers

nothing calls this directly

Calls 3

Int32Method · 0.80
ListMethod · 0.45

Tested by

no test coverage detected