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 70fd1ec commit 6802015
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 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<<30) {}
GoogleBenchmarkColumnarToRowCacheScanBenchmark(std::string filename) : GoogleBenchmarkColumnarToRow(filename, 64<<20) {}
void operator()(benchmark::State& state) {
if (state.range(0) == 0xffffffff) {
setCpu(state.thread_index());
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<<30);
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 6802015

Please sign in to comment.