mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-30 03:22:14 +00:00
ae626281b6
* Cmake: clear test variables with CMakePushCheckState (it will fix macos build issue) * Add some perf tests * Fix PerformanceTest, fix tests * Add nyc-taxi queries * Update PerformanceTest.cpp * PerformanceTest: allow recursive .xml search * Tests tune * Move tests to dirs * --recursive * Add space
29 lines
1.1 KiB
XML
29 lines
1.1 KiB
XML
<test>
|
|
<name>nyc_taxi</name>
|
|
<type>loop</type>
|
|
|
|
<stop_conditions>
|
|
<all_of>
|
|
<iterations>5</iterations>
|
|
<min_time_not_changing_for_ms>10000</min_time_not_changing_for_ms>
|
|
</all_of>
|
|
<any_of>
|
|
<iterations>50</iterations>
|
|
<total_time_ms>60000</total_time_ms>
|
|
</any_of>
|
|
</stop_conditions>
|
|
|
|
<main_metric>
|
|
<min_time/>
|
|
</main_metric>
|
|
|
|
<preconditions>
|
|
<table_exists>default.trips_mergetree</table_exists>
|
|
</preconditions>
|
|
|
|
<query>SELECT cab_type, count(*) FROM trips_mergetree GROUP BY cab_type</query>
|
|
<query>SELECT passenger_count, avg(total_amount) FROM trips_mergetree GROUP BY passenger_count</query>
|
|
<query>SELECT passenger_count, toYear(pickup_date) AS year, count(*) FROM trips_mergetree GROUP BY passenger_count, year</query>
|
|
<query>SELECT passenger_count, toYear(pickup_date) AS year, round(trip_distance) AS distance, count(*) FROM trips_mergetree GROUP BY passenger_count, year, distance ORDER BY year, count(*) DESC</query>
|
|
</test>
|