mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-21 23:21:59 +00:00
Add performance tests
This commit is contained in:
parent
2f276c2bb7
commit
3a18d6b494
35
dbms/tests/performance/roundMethods.xml
Normal file
35
dbms/tests/performance/roundMethods.xml
Normal file
@ -0,0 +1,35 @@
|
||||
<test>
|
||||
<type>once</type>
|
||||
|
||||
<stop_conditions>
|
||||
<all_of>
|
||||
<total_time_ms>10000</total_time_ms>
|
||||
</all_of>
|
||||
<any_of>
|
||||
<average_speed_not_changing_for_ms>5000</average_speed_not_changing_for_ms>
|
||||
<total_time_ms>20000</total_time_ms>
|
||||
</any_of>
|
||||
</stop_conditions>
|
||||
|
||||
<main_metric>
|
||||
<avg_rows_per_second/>
|
||||
</main_metric>
|
||||
|
||||
<query>SELECT count() FROM system.numbers WHERE NOT ignore(round(toInt64(number), -2))</query>
|
||||
<query>SELECT count() FROM system.numbers WHERE NOT ignore(bankersRound(toInt64(number), -2))</query>
|
||||
<query>SELECT count() FROM system.numbers WHERE NOT ignore(floor(toInt64(number), -2))</query>
|
||||
<query>SELECT count() FROM system.numbers WHERE NOT ignore(ceil(toInt64(number), -2))</query>
|
||||
<query>SELECT count() FROM system.numbers WHERE NOT ignore(trunc(toInt64(number), -2))</query>
|
||||
|
||||
<query>SELECT count() FROM system.numbers WHERE NOT ignore(round(toFloat64(number), -2))</query>
|
||||
<query>SELECT count() FROM system.numbers WHERE NOT ignore(bankersRound(toFloat64(number), -2))</query>
|
||||
<query>SELECT count() FROM system.numbers WHERE NOT ignore(floor(toFloat64(number), -2))</query>
|
||||
<query>SELECT count() FROM system.numbers WHERE NOT ignore(ceil(toFloat64(number), -2))</query>
|
||||
<query>SELECT count() FROM system.numbers WHERE NOT ignore(trunc(toFloat64(number), -2))</query>
|
||||
|
||||
<query>SELECT count() FROM system.numbers WHERE NOT ignore(round(toDecimal128(number, 0), -2))</query>
|
||||
<query>SELECT count() FROM system.numbers WHERE NOT ignore(bankersRound(toDecimal128(number, 0), -2))</query>
|
||||
<query>SELECT count() FROM system.numbers WHERE NOT ignore(floor(toDecimal128(number, 0), -2))</query>
|
||||
<query>SELECT count() FROM system.numbers WHERE NOT ignore(ceil(toDecimal128(number, 0), -2))</query>
|
||||
<query>SELECT count() FROM system.numbers WHERE NOT ignore(trunc(toDecimal128(number, 0), -2))</query>
|
||||
</test>
|
Loading…
Reference in New Issue
Block a user