WillAyd commented on code in PR #15041: URL: https://github.com/apache/arrow/pull/15041#discussion_r1053772951
########## 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: Hmm OK. IIUC we are parametrizing a benchmark with a bunch of different sized byte streams, the length of which is available through args.size. So is the suggested fix here to divide that by `sizeof(string)`? Or should it be `int32_t` to match the offset of `StringType`? -- 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