add perf test

This commit is contained in:
Anton Popov 2022-05-28 12:23:05 +00:00
parent b2cff26ecf
commit c39d95e2e6
3 changed files with 12 additions and 1 deletions

View File

@ -53,6 +53,15 @@ public:
++data(place).count;
}
void addManyDefaults(
AggregateDataPtr __restrict place,
const IColumn ** /*columns*/,
size_t length,
Arena * /*arena*/) const override
{
data(place).count += length;
}
void addBatchSinglePlace(
size_t row_begin,
size_t row_end,

View File

@ -429,7 +429,7 @@ public:
const auto * values = &column_sparse.getValuesColumn();
auto offset_it = column_sparse.getIterator(row_begin);
for (size_t i = 0; i < row_end; ++i, ++offset_it)
for (size_t i = row_begin; i < row_end; ++i, ++offset_it)
static_cast<const Derived *>(this)->add(places[offset_it.getCurrentRow()] + place_offset,
&values, offset_it.getValueIndex(), arena);
}

View File

@ -53,6 +53,8 @@
<query>SELECT sum(u64) FROM test_{serialization}_{ratio} GROUP BY id % 11 FORMAT Null</query>
<query>SELECT uniq(str) FROM test_{serialization}_{ratio} GROUP BY id % 11 FORMAT Null</query>
<query>SELECT sum(u64) FROM test_{serialization}_{ratio} FORMAT Null</query>
<query>SELECT uniq(str) FROM test_{serialization}_{ratio} FORMAT Null</query>
<query>SELECT count() FROM test_{serialization}_{ratio} WHERE u64 > 0</query>
<query>SELECT count() FROM test_{serialization}_{ratio} WHERE notEmpty(str)</query>