Skip to content

Commit

Permalink
Update ColumnarToRowBenchmark.cc
Browse files Browse the repository at this point in the history
  • Loading branch information
FelixYBW authored Aug 1, 2024
1 parent 6802015 commit c4f22f6
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions cpp/velox/benchmarks/ColumnarToRowBenchmark.cc
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ class GoogleBenchmarkColumnarToRow {
};
class GoogleBenchmarkColumnarToRowCacheScanBenchmark : public GoogleBenchmarkColumnarToRow {
public:
GoogleBenchmarkColumnarToRowCacheScanBenchmark(std::string filename) : GoogleBenchmarkColumnarToRow(filename, 64<<20) {}
GoogleBenchmarkColumnarToRowCacheScanBenchmark(std::string filename) : GoogleBenchmarkColumnarToRow(filename) {}
void operator()(benchmark::State& state) {
if (state.range(0) == 0xffffffff) {
setCpu(state.thread_index());
Expand Down Expand Up @@ -157,7 +157,7 @@ class GoogleBenchmarkColumnarToRowCacheScanBenchmark : public GoogleBenchmarkCol
for (auto _ : state) {
for (const auto& vector : vectors) {
auto row = std::dynamic_pointer_cast<velox::RowVector>(vector);
auto columnarToRowConverter = std::make_shared<gluten::VeloxColumnarToRowConverter>(ctxPool);
auto columnarToRowConverter = std::make_shared<gluten::VeloxColumnarToRowConverter>(ctxPool, 64 << 20);
auto cb = std::make_shared<VeloxColumnarBatch>(row);
TIME_NANO_START(writeTime);
columnarToRowConverter->convert(cb);
Expand Down Expand Up @@ -212,7 +212,7 @@ class GoogleBenchmarkColumnarToRowIterateScanBenchmark : public GoogleBenchmarkC
numBatches += 1;
numRows += recordBatch->num_rows();
auto vector = recordBatch2RowVector(*recordBatch);
auto columnarToRowConverter = std::make_shared<gluten::VeloxColumnarToRowConverter>(ctxPool, 64<<20);
auto columnarToRowConverter = std::make_shared<gluten::VeloxColumnarToRowConverter>(ctxPool, 64 << 20);
auto row = std::dynamic_pointer_cast<velox::RowVector>(vector);
auto cb = std::make_shared<VeloxColumnarBatch>(row);
TIME_NANO_START(writeTime);
Expand Down

0 comments on commit c4f22f6

Please sign in to comment.