Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 4 additions & 5 deletions cpp/src/parquet/encoding_benchmark.cc
Original file line number Diff line number Diff line change
Expand Up @@ -1233,12 +1233,11 @@ class BenchmarkDecodeArrowByteArray : public BenchmarkDecodeArrowBase<ByteArrayT
valid_bits_ = input_array_->null_bitmap_data();
total_size_ = input_array_->data()->buffers[2]->size();

values_.reserve(num_values_);
values_.resize(num_values_);
const auto& binary_array = static_cast<const ::arrow::BinaryArray&>(*input_array_);
for (int64_t i = 0; i < binary_array.length(); i++) {
auto view = binary_array.GetView(i);
values_.emplace_back(static_cast<uint32_t>(view.length()),
reinterpret_cast<const uint8_t*>(view.data()));
values_[i] = view;
}
}

Expand Down Expand Up @@ -1431,10 +1430,10 @@ class BenchmarkDecodeArrowBoolean : public BenchmarkDecodeArrowBase<BooleanType>
// so, we uses this as "total_size" for the benchmark.
total_size_ = ::arrow::bit_util::BytesForBits(num_values_);

values_.reserve(num_values_);
values_.resize(num_values_);
const auto& boolean_array = static_cast<const ::arrow::BooleanArray&>(*input_array_);
for (int64_t i = 0; i < boolean_array.length(); i++) {
values_.push_back(boolean_array.Value(i));
values_[i] = boolean_array.Value(i);
}
}

Expand Down
6 changes: 3 additions & 3 deletions dev/conbench_envs/benchmarks.env
Original file line number Diff line number Diff line change
Expand Up @@ -21,16 +21,16 @@ ARROW_BUILD_BENCHMARKS_REFERENCE=OFF
ARROW_BUILD_TYPE=release
ARROW_DEPENDENCY_SOURCE=AUTO
ARROW_DATASET=ON
ARROW_DEFAULT_MEMORY_POOL=mimalloc
ARROW_DEFAULT_MEMORY_POOL=jemalloc
ARROW_ENABLE_UNSAFE_MEMORY_ACCESS=true
ARROW_ENABLE_NULL_CHECK_FOR_GET=false
ARROW_FLIGHT=OFF
ARROW_GANDIVA=OFF
ARROW_HDFS=ON
ARROW_HOME=$CONDA_PREFIX
ARROW_INSTALL_NAME_RPATH=ON
ARROW_JEMALLOC=OFF
ARROW_MIMALLOC=ON
ARROW_JEMALLOC=ON
ARROW_MIMALLOC=OFF
ARROW_ORC=ON
ARROW_PARQUET=ON
ARROW_PYTHON=ON
Expand Down