mapleFU commented on code in PR #34676:
URL: https://github.com/apache/arrow/pull/34676#discussion_r1144757473
##########
cpp/src/parquet/encoding_benchmark.cc:
##########
@@ -254,23 +255,59 @@ static void BM_PlainEncodingSpaced(benchmark::State&
state) {
state.SetBytesProcessed(state.iterations() * num_values * sizeof(CType));
}
+template <>
+void BM_EncodingSpaced<BooleanType>(benchmark::State& state, Encoding::type
encoding) {
+ using CType = bool;
+
+ const int num_values = static_cast<int>(state.range(0));
+ const double null_percent = static_cast<double>(state.range(1)) / 10000.0;
Review Comment:
These code was modified from origin test, and only `state.range(0) =
MAX_RANGE` is possible. See
https://github.com/apache/arrow/pull/34676#issuecomment-1478914177 .
`state.range(1)` is null percent
--
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: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]