mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-28 18:42:26 +00:00
Added performance tests #3176
This commit is contained in:
parent
200860724e
commit
2878f39e1e
@ -30,9 +30,12 @@
|
|||||||
<value>toHour</value>
|
<value>toHour</value>
|
||||||
<value>toDayOfWeek</value>
|
<value>toDayOfWeek</value>
|
||||||
<value>toDayOfMonth</value>
|
<value>toDayOfMonth</value>
|
||||||
|
<value>toDayOfYear</value>
|
||||||
<value>toMonth</value>
|
<value>toMonth</value>
|
||||||
<!--value>toQuarter</value-->
|
<value>toQuarter</value>
|
||||||
<value>toYear</value>
|
<value>toYear</value>
|
||||||
|
<value>toISOWeek</value>
|
||||||
|
<value>toISOYear</value>
|
||||||
|
|
||||||
<value>toStartOfMinute</value>
|
<value>toStartOfMinute</value>
|
||||||
<value>toStartOfFiveMinute</value>
|
<value>toStartOfFiveMinute</value>
|
||||||
@ -43,7 +46,8 @@
|
|||||||
<value>toMonday</value>
|
<value>toMonday</value>
|
||||||
<value>toStartOfMonth</value>
|
<value>toStartOfMonth</value>
|
||||||
<value>toStartOfQuarter</value>
|
<value>toStartOfQuarter</value>
|
||||||
<value>toYear</value>
|
<value>toStartOfYear</value>
|
||||||
|
<value>toStartOfISOYear</value>
|
||||||
|
|
||||||
<value>toTime</value>
|
<value>toTime</value>
|
||||||
|
|
||||||
@ -65,16 +69,20 @@
|
|||||||
<values>
|
<values>
|
||||||
<value>toDayOfWeek</value>
|
<value>toDayOfWeek</value>
|
||||||
<value>toDayOfMonth</value>
|
<value>toDayOfMonth</value>
|
||||||
|
<value>toDayOfYear</value>
|
||||||
<value>toMonth</value>
|
<value>toMonth</value>
|
||||||
<!--value>toQuarter</value-->
|
<value>toQuarter</value>
|
||||||
<value>toYear</value>
|
<value>toYear</value>
|
||||||
|
<value>toISOWeek</value>
|
||||||
|
<value>toISOYear</value>
|
||||||
|
|
||||||
<value>toStartOfDay</value>
|
<value>toStartOfDay</value>
|
||||||
<value>toDate</value>
|
<value>toDate</value>
|
||||||
<value>toMonday</value>
|
<value>toMonday</value>
|
||||||
<value>toStartOfMonth</value>
|
<value>toStartOfMonth</value>
|
||||||
<value>toStartOfQuarter</value>
|
<value>toStartOfQuarter</value>
|
||||||
<value>toYear</value>
|
<value>toStartOfYear</value>
|
||||||
|
<value>toStartOfISOYear</value>
|
||||||
|
|
||||||
<value>toRelativeYearNum</value>
|
<value>toRelativeYearNum</value>
|
||||||
<value>toRelativeMonthNum</value>
|
<value>toRelativeMonthNum</value>
|
||||||
|
38
dbms/tests/performance/date_time/format_date_time.xml
Normal file
38
dbms/tests/performance/date_time/format_date_time.xml
Normal file
@ -0,0 +1,38 @@
|
|||||||
|
<test>
|
||||||
|
<name>Function formatDateTime</name>
|
||||||
|
|
||||||
|
<type>once</type>
|
||||||
|
|
||||||
|
<tags>
|
||||||
|
</tags>
|
||||||
|
|
||||||
|
<stop_conditions>
|
||||||
|
<any_of>
|
||||||
|
<average_speed_not_changing_for_ms>10000</average_speed_not_changing_for_ms>
|
||||||
|
<total_time_ms>1000</total_time_ms>
|
||||||
|
</any_of>
|
||||||
|
</stop_conditions>
|
||||||
|
|
||||||
|
<metrics>
|
||||||
|
<max_rows_per_second />
|
||||||
|
<max_bytes_per_second />
|
||||||
|
<avg_rows_per_second />
|
||||||
|
<avg_bytes_per_second />
|
||||||
|
</metrics>
|
||||||
|
|
||||||
|
<substitutions>
|
||||||
|
<substitution>
|
||||||
|
<name>format</name>
|
||||||
|
<values>
|
||||||
|
<value>%F %T</value>
|
||||||
|
<value>%H:%M:%S</value>
|
||||||
|
<value>%Y-%m-%d %H:%M:%S</value>
|
||||||
|
<value>%m/%d/%Y %H:%M:%S</value>
|
||||||
|
<value>Hello</value>
|
||||||
|
<value>The current time is: %I:%M %p</value>
|
||||||
|
</values>
|
||||||
|
</substitution>
|
||||||
|
</substitutions>
|
||||||
|
|
||||||
|
<query>SELECT count() FROM system.numbers WHERE NOT ignore(toDateTime('2017-01-01 00:00:00') + number % 100000000 + rand() % 100000 AS t, formatDateTime(t, '{format}'))</query>
|
||||||
|
</test>
|
Loading…
Reference in New Issue
Block a user