cyb70289 commented on code in PR #15041:
URL: https://github.com/apache/arrow/pull/15041#discussion_r1055069896


##########
cpp/src/arrow/compute/kernels/vector_sort_benchmark.cc:
##########
@@ -106,6 +125,19 @@ static void ArraySortFuncBoolBenchmark(benchmark::State& 
state, const Runner& ru
   ArraySortFuncBenchmark(state, runner, values);
 }
 
+template <typename Runner>
+static void ArraySortFuncStringBenchmark(benchmark::State& state, const 
Runner& runner,
+                                         int64_t min_length, int64_t 
max_length) {
+  RegressionArgs args(state);
+
+  const int64_t array_size = args.size / sizeof(int64_t);

Review Comment:
   Divides `sizeof(int64_t)` is not right. If `args.size` is in bytes, it 
should divides `(min_length + max_length) / 2`, but must also consider 
`null_proportions`.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: github-unsubscr...@arrow.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to