cyb70289 commented on a change in pull request #9435:
URL: https://github.com/apache/arrow/pull/9435#discussion_r580797904



##########
File path: cpp/src/arrow/compute/kernels/aggregate_benchmark.cc
##########
@@ -498,5 +498,19 @@ QUANTILE_KERNEL_BENCHMARK_WIDE(QuantileKernelInt64Wide, 
Int64Type);
 QUANTILE_KERNEL_BENCHMARK_NARROW(QuantileKernelInt64Narrow, Int64Type);
 QUANTILE_KERNEL_BENCHMARK_WIDE(QuantileKernelDouble, DoubleType);
 
+static void TDigestKernel(benchmark::State& state) {
+  TDigestOptions options;
+  RegressionArgs args(state);
+  const int64_t array_size = args.size / sizeof(double);
+  auto rand = random::RandomArrayGenerator(1926);
+  auto array = rand.Numeric<DoubleType>(array_size, 0, 1 << 24, 
args.null_proportion);
+
+  for (auto _ : state) {
+    ABORT_NOT_OK(TDigest(array, options).status());
+  }
+}
+
+BENCHMARK(TDigestKernel)->Apply(QuantileKernelBenchArgs);

Review comment:
       Done




----------------------------------------------------------------
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.

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to