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

Function BenchUnique

cpp/src/arrow/compute/kernels/vector_hash_benchmark.cc:131–139  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

129
130template <typename ParamType>
131void BenchUnique(benchmark::State& state, const ParamType& params) {
132 std::shared_ptr<Array> arr;
133 params.GenerateTestData(&arr);
134
135 while (state.KeepRunning()) {
136 ABORT_NOT_OK(Unique(arr));
137 }
138 params.SetMetadata(state);
139}
140
141template <typename ParamType>
142void BenchDictionaryEncode(benchmark::State& state, const ParamType& params) {

Callers 4

UniqueUInt8Function · 0.85
UniqueInt64Function · 0.85
UniqueString10bytesFunction · 0.85
UniqueString100bytesFunction · 0.85

Calls 2

GenerateTestDataMethod · 0.45
SetMetadataMethod · 0.45

Tested by

no test coverage detected