mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-05 15:21:43 +00:00
35 lines
967 B
XML
35 lines
967 B
XML
<test>
|
|
<name>trim_numbers</name>
|
|
<type>loop</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>
|
|
<min_time/>
|
|
</main_metric>
|
|
|
|
<substitutions>
|
|
<substitution>
|
|
<name>func</name>
|
|
<values>
|
|
<value>trim(</value>
|
|
<value>ltrim(</value>
|
|
<value>rtrim(</value>
|
|
<value>trim(LEADING '012345' FROM </value>
|
|
<value>trim(TRAILING '012345' FROM </value>
|
|
<value>trim(BOTH '012345' FROM </value>
|
|
</values>
|
|
</substitution>
|
|
</substitutions>
|
|
|
|
<query>SELECT count() FROM numbers(10000000) WHERE NOT ignore({func}toString(number)))</query>
|
|
</test>
|