mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-21 23:21:59 +00:00
add perf test
This commit is contained in:
parent
b2cff26ecf
commit
c39d95e2e6
@ -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,
|
||||
|
@ -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);
|
||||
}
|
||||
|
@ -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>
|
||||
|
Loading…
Reference in New Issue
Block a user