ClickHouse/dbms/tests/performance/trim/trim_urls.xml
2018-12-14 12:20:22 +03:00

39 lines
1.0 KiB
XML

<test>
<name>trim_urls</name>
<type>loop</type>
<preconditions>
<table_exists>hits_100m_single</table_exists>
</preconditions>
<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 'htpsw:/' FROM </value>
<value>trim(TRAILING '/' FROM </value>
<value>trim(BOTH 'htpsw:/' FROM </value>
</values>
</substitution>
</substitutions>
<query>SELECT count() FROM hits_100m_single WHERE NOT ignore({func}URL))</query>
</test>