mapleFU commented on code in PR #34676:
URL: https://github.com/apache/arrow/pull/34676#discussion_r1144763362
##########
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:
For spaced tests, arguments come from here:
```
static void BM_SpacedArgs(benchmark::internal::Benchmark* bench) {
constexpr auto kPlainSpacedSize = 32 * 1024; // 32k
bench->Args({/*size*/ kPlainSpacedSize, /*null_in_ten_thousand*/ 1});
bench->Args({/*size*/ kPlainSpacedSize, /*null_in_ten_thousand*/ 100});
bench->Args({/*size*/ kPlainSpacedSize, /*null_in_ten_thousand*/ 1000});
bench->Args({/*size*/ kPlainSpacedSize, /*null_in_ten_thousand*/ 5000});
bench->Args({/*size*/ kPlainSpacedSize, /*null_in_ten_thousand*/ 10000});
}
```
--
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]