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

Class RankRunner

cpp/src/arrow/compute/kernels/vector_sort_benchmark.cc:52–67  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

50};
51
52struct RankRunner {
53 explicit RankRunner(benchmark::State& state) {
54 options = RankOptions::Defaults();
55 options.tiebreaker = static_cast<RankOptions::Tiebreaker>(state.range(2));
56 }
57
58 RankOptions options;
59
60 Status operator()(const std::shared_ptr<Array>& values) const {
61 return CallFunction("rank", {values}, &options).status();
62 }
63
64 Status operator()(const std::shared_ptr<ChunkedArray>& values) const {
65 return CallFunction("rank", {values}, &options).status();
66 }
67};
68
69template <typename Runner, typename ArrayLike>
70static void ArraySortFuncBenchmark(benchmark::State& state, const Runner& runner,

Callers 6

ArrayRankInt64NarrowFunction · 0.85
ArrayRankInt64WideFunction · 0.85
ArrayRankStringNarrowFunction · 0.85
ArrayRankStringWideFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected