From aefc9210facac1e3be765b4fba34007129c410cf Mon Sep 17 00:00:00 2001 From: Nikolai Kochetov Date: Thu, 28 Dec 2017 19:49:50 +0300 Subject: [PATCH] added perftest [#CLICKHOUSE-3503] --- .../test_hits_agg_functions_min_max_any.xml | 119 ++++++++++++++++++ 1 file changed, 119 insertions(+) create mode 100644 dbms/tests/performance/test_hits/test_hits_agg_functions_min_max_any.xml diff --git a/dbms/tests/performance/test_hits/test_hits_agg_functions_min_max_any.xml b/dbms/tests/performance/test_hits/test_hits_agg_functions_min_max_any.xml new file mode 100644 index 00000000000..50ccb6542ab --- /dev/null +++ b/dbms/tests/performance/test_hits/test_hits_agg_functions_min_max_any.xml @@ -0,0 +1,119 @@ + + test_hits_agg_functions_max_min_any + loop + + + + 3 + 10000 + + + 5 + 60000 + + + + + + + + + default.hits_1000m + + + +select min(Title) from hits_1000m where Title != '' group by intHash32(UserID) % 1000000 +select max(Title) from hits_1000m where Title != '' group by intHash32(UserID) % 1000000 +select any(Title) from hits_1000m where Title != '' group by intHash32(UserID) % 1000000 +select anyHeavy(Title) from hits_1000m where Title != '' group by intHash32(UserID) % 1000000 +select min(URL) from hits_1000m where URL != '' group by intHash32(UserID) % 1000000 +select max(URL) from hits_1000m where URL != '' group by intHash32(UserID) % 1000000 +select any(URL) from hits_1000m where URL != '' group by intHash32(UserID) % 1000000 +select anyHeavy(URL) from hits_1000m where URL != '' group by intHash32(UserID) % 1000000 +select min(Referer) from hits_1000m where Referer != '' group by intHash32(UserID) % 1000000 +select max(Referer) from hits_1000m where Referer != '' group by intHash32(UserID) % 1000000 +select any(Referer) from hits_1000m where Referer != '' group by intHash32(UserID) % 1000000 +select anyHeavy(Referer) from hits_1000m where Referer != '' group by intHash32(UserID) % 1000000 +select min(FlashMinor2) from hits_1000m where FlashMinor2 != '' group by intHash32(UserID) % 1000000 +select max(FlashMinor2) from hits_1000m where FlashMinor2 != '' group by intHash32(UserID) % 1000000 +select any(FlashMinor2) from hits_1000m where FlashMinor2 != '' group by intHash32(UserID) % 1000000 +select anyHeavy(FlashMinor2) from hits_1000m where FlashMinor2 != '' group by intHash32(UserID) % 1000000 +select min(MobilePhoneModel) from hits_1000m where MobilePhoneModel != '' group by intHash32(UserID) % 1000000 +select max(MobilePhoneModel) from hits_1000m where MobilePhoneModel != '' group by intHash32(UserID) % 1000000 +select any(MobilePhoneModel) from hits_1000m where MobilePhoneModel != '' group by intHash32(UserID) % 1000000 +select anyHeavy(MobilePhoneModel) from hits_1000m where MobilePhoneModel != '' group by intHash32(UserID) % 1000000 +select min(Params) from hits_1000m where Params != '' group by intHash32(UserID) % 1000000 +select max(Params) from hits_1000m where Params != '' group by intHash32(UserID) % 1000000 +select any(Params) from hits_1000m where Params != '' group by intHash32(UserID) % 1000000 +select anyHeavy(Params) from hits_1000m where Params != '' group by intHash32(UserID) % 1000000 +select min(SearchPhrase) from hits_1000m where SearchPhrase != '' group by intHash32(UserID) % 1000000 +select max(SearchPhrase) from hits_1000m where SearchPhrase != '' group by intHash32(UserID) % 1000000 +select any(SearchPhrase) from hits_1000m where SearchPhrase != '' group by intHash32(UserID) % 1000000 +select anyHeavy(SearchPhrase) from hits_1000m where SearchPhrase != '' group by intHash32(UserID) % 1000000 +select min(PageCharset) from hits_1000m where PageCharset != '' group by intHash32(UserID) % 1000000 +select max(PageCharset) from hits_1000m where PageCharset != '' group by intHash32(UserID) % 1000000 +select any(PageCharset) from hits_1000m where PageCharset != '' group by intHash32(UserID) % 1000000 +select anyHeavy(PageCharset) from hits_1000m where PageCharset != '' group by intHash32(UserID) % 1000000 +select min(OriginalURL) from hits_1000m where OriginalURL != '' group by intHash32(UserID) % 1000000 +select max(OriginalURL) from hits_1000m where OriginalURL != '' group by intHash32(UserID) % 1000000 +select any(OriginalURL) from hits_1000m where OriginalURL != '' group by intHash32(UserID) % 1000000 +select anyHeavy(OriginalURL) from hits_1000m where OriginalURL != '' group by intHash32(UserID) % 1000000 +select min(SocialNetwork) from hits_1000m where SocialNetwork != '' group by intHash32(UserID) % 1000000 +select max(SocialNetwork) from hits_1000m where SocialNetwork != '' group by intHash32(UserID) % 1000000 +select any(SocialNetwork) from hits_1000m where SocialNetwork != '' group by intHash32(UserID) % 1000000 +select anyHeavy(SocialNetwork) from hits_1000m where SocialNetwork != '' group by intHash32(UserID) % 1000000 +select min(SocialAction) from hits_1000m where SocialAction != '' group by intHash32(UserID) % 1000000 +select max(SocialAction) from hits_1000m where SocialAction != '' group by intHash32(UserID) % 1000000 +select any(SocialAction) from hits_1000m where SocialAction != '' group by intHash32(UserID) % 1000000 +select anyHeavy(SocialAction) from hits_1000m where SocialAction != '' group by intHash32(UserID) % 1000000 +select min(SocialSourcePage) from hits_1000m where SocialSourcePage != '' group by intHash32(UserID) % 1000000 +select max(SocialSourcePage) from hits_1000m where SocialSourcePage != '' group by intHash32(UserID) % 1000000 +select any(SocialSourcePage) from hits_1000m where SocialSourcePage != '' group by intHash32(UserID) % 1000000 +select anyHeavy(SocialSourcePage) from hits_1000m where SocialSourcePage != '' group by intHash32(UserID) % 1000000 +select min(ParamOrderID) from hits_1000m where ParamOrderID != '' group by intHash32(UserID) % 1000000 +select max(ParamOrderID) from hits_1000m where ParamOrderID != '' group by intHash32(UserID) % 1000000 +select any(ParamOrderID) from hits_1000m where ParamOrderID != '' group by intHash32(UserID) % 1000000 +select anyHeavy(ParamOrderID) from hits_1000m where ParamOrderID != '' group by intHash32(UserID) % 1000000 +select min(OpenstatServiceName) from hits_1000m where OpenstatServiceName != '' group by intHash32(UserID) % 1000000 +select max(OpenstatServiceName) from hits_1000m where OpenstatServiceName != '' group by intHash32(UserID) % 1000000 +select any(OpenstatServiceName) from hits_1000m where OpenstatServiceName != '' group by intHash32(UserID) % 1000000 +select anyHeavy(OpenstatServiceName) from hits_1000m where OpenstatServiceName != '' group by intHash32(UserID) % 1000000 +select min(OpenstatCampaignID) from hits_1000m where OpenstatCampaignID != '' group by intHash32(UserID) % 1000000 +select max(OpenstatCampaignID) from hits_1000m where OpenstatCampaignID != '' group by intHash32(UserID) % 1000000 +select any(OpenstatCampaignID) from hits_1000m where OpenstatCampaignID != '' group by intHash32(UserID) % 1000000 +select anyHeavy(OpenstatCampaignID) from hits_1000m where OpenstatCampaignID != '' group by intHash32(UserID) % 1000000 +select min(OpenstatAdID) from hits_1000m where OpenstatAdID != '' group by intHash32(UserID) % 1000000 +select max(OpenstatAdID) from hits_1000m where OpenstatAdID != '' group by intHash32(UserID) % 1000000 +select any(OpenstatAdID) from hits_1000m where OpenstatAdID != '' group by intHash32(UserID) % 1000000 +select anyHeavy(OpenstatAdID) from hits_1000m where OpenstatAdID != '' group by intHash32(UserID) % 1000000 +select min(OpenstatSourceID) from hits_1000m where OpenstatSourceID != '' group by intHash32(UserID) % 1000000 +select max(OpenstatSourceID) from hits_1000m where OpenstatSourceID != '' group by intHash32(UserID) % 1000000 +select any(OpenstatSourceID) from hits_1000m where OpenstatSourceID != '' group by intHash32(UserID) % 1000000 +select anyHeavy(OpenstatSourceID) from hits_1000m where OpenstatSourceID != '' group by intHash32(UserID) % 1000000 +select min(UTMSource) from hits_1000m where UTMSource != '' group by intHash32(UserID) % 1000000 +select max(UTMSource) from hits_1000m where UTMSource != '' group by intHash32(UserID) % 1000000 +select any(UTMSource) from hits_1000m where UTMSource != '' group by intHash32(UserID) % 1000000 +select anyHeavy(UTMSource) from hits_1000m where UTMSource != '' group by intHash32(UserID) % 1000000 +select min(UTMMedium) from hits_1000m where UTMMedium != '' group by intHash32(UserID) % 1000000 +select max(UTMMedium) from hits_1000m where UTMMedium != '' group by intHash32(UserID) % 1000000 +select any(UTMMedium) from hits_1000m where UTMMedium != '' group by intHash32(UserID) % 1000000 +select anyHeavy(UTMMedium) from hits_1000m where UTMMedium != '' group by intHash32(UserID) % 1000000 +select min(UTMCampaign) from hits_1000m where UTMCampaign != '' group by intHash32(UserID) % 1000000 +select max(UTMCampaign) from hits_1000m where UTMCampaign != '' group by intHash32(UserID) % 1000000 +select any(UTMCampaign) from hits_1000m where UTMCampaign != '' group by intHash32(UserID) % 1000000 +select anyHeavy(UTMCampaign) from hits_1000m where UTMCampaign != '' group by intHash32(UserID) % 1000000 +select min(UTMContent) from hits_1000m where UTMContent != '' group by intHash32(UserID) % 1000000 +select max(UTMContent) from hits_1000m where UTMContent != '' group by intHash32(UserID) % 1000000 +select any(UTMContent) from hits_1000m where UTMContent != '' group by intHash32(UserID) % 1000000 +select anyHeavy(UTMContent) from hits_1000m where UTMContent != '' group by intHash32(UserID) % 1000000 +select min(UTMTerm) from hits_1000m where UTMTerm != '' group by intHash32(UserID) % 1000000 +select max(UTMTerm) from hits_1000m where UTMTerm != '' group by intHash32(UserID) % 1000000 +select any(UTMTerm) from hits_1000m where UTMTerm != '' group by intHash32(UserID) % 1000000 +select anyHeavy(UTMTerm) from hits_1000m where UTMTerm != '' group by intHash32(UserID) % 1000000 +select min(FromTag) from hits_1000m where FromTag != '' group by intHash32(UserID) % 1000000 +select max(FromTag) from hits_1000m where FromTag != '' group by intHash32(UserID) % 1000000 +select any(FromTag) from hits_1000m where FromTag != '' group by intHash32(UserID) % 1000000 +select anyHeavy(FromTag) from hits_1000m where FromTag != '' group by intHash32(UserID) % 1000000 + + +