NageshPatel978 commented on code in PR #55714:
URL: https://github.com/apache/arrow/pull/55714#discussion_r4657765470
##########
cpp/src/parquet/encoding_benchmark.cc:
##########
@@ -729,6 +729,73 @@ static void BM_AlpDecodingDouble(benchmark::State& state) {
}
BENCHMARK(BM_AlpDecodingDouble)->Range(MIN_RANGE, MAX_RANGE);
+// ALP speed depends on how "decimal-like" the data is, so vary the number of
decimals
+// and the share of values that cannot be encoded that way (exceptions).
+template <typename T>
+static std::vector<T> MakeAlpInput(int64_t length, int decimals, int
exception_percent) {
+ std::default_random_engine gen(/*seed=*/42);
+ std::uniform_int_distribution<int64_t> dist_digits(0, 100000);
Review Comment:
Fixed (now at line 740): removed the decimals sweep (single scale, 2
decimals) and the
digits now span the signed range [-100000, 100000].
--
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]